|
What query operators are available?
Comparison | | $gt, $gte, $in, $lt, $lte, $ne, $nin
Example: db.customers.find({acct_balance:{$gte:100000}}) |
|
Logical | | $and, $or, $not, $nor
Example: db.customers.find({$and:[{status:"AAA"},{gender:"F"}]}) |
|
Element | | $exists, $type
Example: db.test.find({b:{$exists:false}}) |
---|
More info: docs.mongodb.org/manual/reference/operator/query/
|
|