Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/mongodb-extended-json/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
*Referrer*: https://www.google.com.au/
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: reference/mongodb-extended-json
*Location*: http://docs.mongodb.org/manual/reference/mongodb-extended-json/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 *Referrer*: https://www.google.com.au/ *Screen Resolution*: 1440 x 900 *repo*: docs *source*: reference/mongodb-extended-json
Description
The example for "Undefined" has a strange syntax with parenthesis instead of curly braces.
db.people.find( { age : ( $gte : undefined ) } )
|
Should probably be
db.people.find( { age : { $gte : undefined } } )
|
While it is a negative example (i.e. won't work either way), we should not make it more confusing by using invalid syntax.
More background to undefined in the shell: https://jira.mongodb.org/browse/SERVER-6102