where in mongodb code example
Example 1: find with $or in mongobd
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Example 2: $in mongodb
{ field: { $in: [<value1>, <value2>, ... <valueN> ] } }
db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
{ field: { $in: [<value1>, <value2>, ... <valueN> ] } }