Details
-
Bug
-
Resolution: Done
-
Critical - P2
-
None
-
2.6.0
-
None
-
ALL
Description
The following query can be executed successfully:
mydb> db.testData.find({"y":{"$exists" : true}}, {"y" : null})
|
But, swith the places of the criteria:
mydb> db.testData.find({"y" : null},{"y":{"$exists" : true}})
|
system gives the following error:
error: {
|
"$err" : "Can't canonicalize query: BadValue Unsupported projection opti
|
on: y: { $exists: true }",
|
"code" : 17287
|
}
|