节点驱动程序中的语法与外壳程序中的语法不同,这是您使用的语法。
db.collection("collection_name").findAndModify( { _id: _id }, // query [], // represents a sort order if multiple matches { $set: data }, // update statement { new: true }, // options - new to return the modified document function(err,doc) { });有一个单独的功能
.findAndRemove()



