Details
-
Bug
-
Resolution: Done
-
Major - P3
-
mongodb-2.6
Description
Problem:
The documentation for 2.4.6 states
$nor performs a logical NOR operation on an array of two or more <expressions> and selects the documents that fail all the <expressions> in the array.
In fact this is not the case, a $nor works with a single element.
Reproduce:
db.foo.drop()
|
db.foo.insert({a:1})
|
db.foo.insert({a:2})
|
db.foo.find({$nor:[{a:1}]})
|
{ "_id" : ObjectId("524df09df43a2f3063bee9d7"), "a" : 2 }
|