-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:Mongodb Version 2.6.3
*Location*: http://docs.mongodb.org/manual/reference/operator/query/exists/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/query/exists
Mongodb Version 2.6.3 *Location*: http://docs.mongodb.org/manual/reference/operator/query/exists/ *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/operator/query/exists
If I try to execute this command
....find({"query": {$exists: true}}) on version 2.6.3 I get this error
error: {
"$err" : "Can't canonicalize query: BadValue unknown top level operator: $exists",
"code" : 17287
}
But If I execute this same command on version 2.4.6 It works fine.
- is related to
-
DOCS-1560 Document behavior of using the field name "query" as a find predicate
- Closed