Answers for "find multiple in mongodb"

Go
0

mongodb find multiple values

db.things.find({ words: { $in: ["text", "here"] }});
Posted by: Guest on April-29-2022
0

mongodb find multiple criteria

db.emp.find({
    "type" : { "$in": ["WebUser", "User"] },
    "city" : { "$in": ["Pune", "Mumbai"] }
})
Posted by: Guest on January-26-2022

Browse Popular Code Answers by Language