> db.u.update({_id:1}, {name:1}, true) > db.u.find() { "_id" : ObjectId("4f5e509be3438c7dbcf2b056"), "name" : 1 }
should produce this:
> db.u.find() { "_id" : 1, "name" : 1 }
- is duplicated by
-
SERVER-18075 Behavior of Mongo update is different in 2.4 vs 2.6
- Closed
- is related to
-
SERVER-1173 GetLastError After Upsert Should Include New _id
- Closed
-
SERVER-18076 Upsert rejected with error if _id assigned to in $setOnInsert and _id equality match specified in query predicate
- Closed