Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
version 2.4.5
*Location*: http://docs.mongodb.org/manual/reference/operator/exists/#op._S_exists
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.52 Chrome/28.0.1500.52 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/faq/developers/
*Screen Resolution*: 1680 x 1050
*repo*: docs
*source*: reference/operator/exists
version 2.4.5 *Location*: http://docs.mongodb.org/manual/reference/operator/exists/#op._S_exists *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.52 Chrome/28.0.1500.52 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/faq/developers/ *Screen Resolution*: 1680 x 1050 *repo*: docs *source*: reference/operator/exists
Description
> Documents that contain the field but has the value null are not returned.
It's not the case:
> db.test.insert({ _id: 1, cancelDate: null })
|
> db.test.find( { cancelDate : { $exists: false } } )
|
> db.test.find( { cancelDate : { $exists: true } } )
|
{ "_id" : 1, "cancelDate" : null }
|
Attachments
Issue Links
- is related to
-
DOCS-1747 Comment on: "manual/faq/developers.txt"
-
- Closed
-