We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50abf41 + 6a74baa commit d165a44Copy full SHA for d165a44
source/reference/operator/and.txt
@@ -40,10 +40,10 @@ $and
40
db.inventory.find( { price: 1.99, qty: { $lt: 20 } , sale: true } )
41
42
If, however, a query requires an ``AND`` operation on the same field
43
- such as ``{ $price: { $ne: 1.99 } } AND { price: { $exists: true }
+ such as ``{ price: { $ne: 1.99 } } AND { price: { $exists: true }
44
}``, then either use the :operator:`$and` operator for the two
45
separate expressions or combine the operator expressions for the
46
- field ``{ $price: { $ne: 1.99, $exists: true } }``.
+ field ``{ price: { $ne: 1.99, $exists: true } }``.
47
48
Consider the following examples:
49
0 commit comments