[DOCS-2031] $nor indicates there needs to be 2 or more expressions - that's incorrect Created: 03/Oct/13  Updated: 11/Jan/17  Resolved: 04/Oct/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.6
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 19 weeks, 5 days ago

 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 }



 Comments   
Comment by auto [ 04/Oct/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2031 fixing factual matter on $ nor issue
Branch: master
https://github.com/mongodb/docs/commit/3308ea3a14e93764d43922c3f45406c4acd56f89

Comment by auto [ 04/Oct/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2031: refactor structure of $nor page
Branch: master
https://github.com/mongodb/docs/commit/9f5ec5690e0f8775044fe74c3a944e94e7094fd0

Comment by auto [ 04/Oct/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2031 whitespace changes
Branch: master
https://github.com/mongodb/docs/commit/d2e738dc73676a126c76c1abf2e7fede1ac0ac97

Generated at Thu Feb 08 07:42:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.