-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
None
-
Affects Version/s: 2.6.0
-
Component/s: Querying
-
None
-
ALL
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
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 }