返回列表

mongodb update 不执行回调

默认分类 2014/09/21 09:54

mongodb 2.4

db.collection.update(
   <query>,
   <update>,
   <upsert>,
   <multi>,
   <callback>
)

mongodb 2.6

db.collection.update(
   <query>,
   <update>,
   {
     upsert: <boolean>,
     multi: <boolean>,
     writeConcern: <document>
   },
   <callback>
)