> db.foo.update({},{},true) WriteResult({ "nMatched" : 0, "nUpserted" : 1, "nModified" : 0, "_id" : ObjectId("536beb62fe2ac487fb241614") }) > db.foo.findAndModify({query:{_id: ObjectId("536beb62fe2ac487fb241614")},update:{},upsert:true}) 2014-05-08T17:10:23.774-0400 findAndModifyFailed failed: { "ok" : 0, "errmsg" : "need remove or update" } at src/mongo/shell/collection.js:614
- is related to
-
SERVER-12266 Update no longer allows empty modifier objects
- Closed
-
SERVER-13688 Picky errors from 2.6 are needlessly backwards incompatible
- Closed
-
SERVER-13884 $set: {} is now rejected by the update framework, but worked as a noop prior to 2.6
- Closed