mongo query find or code example
Example 1: find with $or in mongobd
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Example 2: find by $in mongo
db.persons.find( { name: { $in: [ "John", "David", "Sarah" ] } } )
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
db.persons.find( { name: { $in: [ "John", "David", "Sarah" ] } } )