-
Type: Improvement
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:Mac OS X 10.8.4, MongoDB 2.4.5
*Location*: http://docs.mongodb.org/manual/faq/developers/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: faq/developers
Mac OS X 10.8.4, MongoDB 2.4.5 *Location*: http://docs.mongodb.org/manual/faq/developers/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1440 x 900 *repo*: docs *source*: faq/developers
The directions for finding values which are null do not work. I entered the following query in my own deployment (version 2.4.5):
mongo> db.traffic.find(
{country: null}) // and it found nothing, and
mongo> db.traffic.find({country: {$type: 10}}) // and it found nothing, but
mongo> db.traffic.find({country: {$type: 6}}).limit(1) // found
{
"_id" : ObjectId("51efe3076853a50b0000355d"),
"ip" : "10.21.18.182",
"method" : "GET",
"timestamp" : ISODate("2013-07-24T14:21:59.168Z"),
"url" : "/box/7fc027dce019bf923c19895e2eab7f84?status=waiting",
"country" : null
}
I tried looking at the source code on GitHub, but I haven't found the issue yet. The documentation is definitely wrong, and it really sucks that the GitHub project (https://github.com/mongodb/mongo) has disabled the "Issues" thing.
- related to
-
DOCS-1771 Comment on: "manual/reference/operator/exists.txt"
- Closed