Details
-
Improvement
-
Resolution: Won't Fix
-
Critical - P2
-
None
-
v1.0
-
None
-
None
Description
2.0.7:
> db.test.findAndModify({"_accountId" : "100000057408993"}, {"$unset": {"gifts.5c06e45d229c4ed5800a26f1b66bde4a":true}});
|
null
|
2.2.0:
> db.test.findAndModify({"_accountId" : "100000057408993"}, {"$unset": {"gifts.5c06e45d229c4ed5800a26f1b66bde4a":true}});
|
Wed Sep 26 19:06:04 uncaught exception: findAndModifyFailed failed: {
|
"errmsg": "need remove or update",
|
"ok": 0
|
}
|
Need to change the command to explicitly use the query and update documents. This was changed with SERVER-1117.
2.2.0:
> db.test.findAndModify( {query:{"_accountId" : "100000057408993"}, update:{"$unset": {"gifts.5c06e45d229c4ed5800a26f1b66bde4a":true}}});
|