Answers for "find with mongo"

4

find with $or in mongobd

db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } )
Posted by: Guest on June-24-2020
3

and operation mongodb find

db.inventory.find( { $and: [ { price: { $ne: 1.99 } }, { price: { $exists: true } } ] } )
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language