Answers for "$or operator in mongodb"

4

find with $or in mongobd

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

and in mongodb

{ $and: [ <expression1>, <expression2>, ... ] }
Posted by: Guest on November-12-2020

Browse Popular Code Answers by Language