Answers for "find document with field having any value in mongodb"

Go
11

mongo console find by id

db.collection.find({_id:ObjectId('5e208c18d598b806c869ca37')}).pretty()
Posted by: Guest on April-27-2020
0

mongodb find all that dont have property

db.things.find( { a : { $exists : false } } ); // return if a is missing
Posted by: Guest on November-18-2020

Code answers related to "find document with field having any value in mongodb"

Browse Popular Code Answers by Language