Answers for "mongodb filter or"

4

find with $or in mongobd

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

mongodb filter include all other fields

use $addFields instead of $project
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language