mongoose update 多行更新

前端之家收集整理的这篇文章主要介绍了mongoose update 多行更新前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
accountModel.update({},{$set: {spotQuestions: "false"}},{ multi: true },function (err,raw) {
        if (err) return handleError(err);
        console.log('The raw response from Mongo was ',raw);
    })

不加回调不行。

猜你在找的程序笔记相关文章