Skip to content

Commit d165a44

Browse files
author
Sam Kleinman
committed
merge: minor correction
2 parents 50abf41 + 6a74baa commit d165a44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/operator/and.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ $and
4040
db.inventory.find( { price: 1.99, qty: { $lt: 20 } , sale: true } )
4141

4242
If, however, a query requires an ``AND`` operation on the same field
43-
such as ``{ $price: { $ne: 1.99 } } AND { price: { $exists: true }
43+
such as ``{ price: { $ne: 1.99 } } AND { price: { $exists: true }
4444
}``, then either use the :operator:`$and` operator for the two
4545
separate expressions or combine the operator expressions for the
46-
field ``{ $price: { $ne: 1.99, $exists: true } }``.
46+
field ``{ price: { $ne: 1.99, $exists: true } }``.
4747

4848
Consider the following examples:
4949

0 commit comments

Comments
 (0)