Answers for "how to see data documents in mongodb"

3

show collection data in mongodb

db.collectionName.find()
Posted by: Guest on November-02-2020
1

mongodb findmany

model.find({
    '_id': { $in: [
        mongoose.Types.ObjectId('4ed3ede8844f0f351100000c'),
        mongoose.Types.ObjectId('4ed3f117a844e0471100000d'), 
        mongoose.Types.ObjectId('4ed3f18132f50c491100000e')
    ]}
}, function(err, docs){
     console.log(docs);
});
Posted by: Guest on December-27-2019

Code answers related to "how to see data documents in mongodb"

Browse Popular Code Answers by Language