mongodb find or code example
Example 1: mongodb find with gt
{field: {$gt: value} }
Example 2: and operation mongodb find
db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )
Example 3: find with $or in mongobd
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Example 4: find by $in mongo
db.persons.find( { name: { $in: [ "John", "David", "Sarah" ] } } )