Mongodb I can see the size of the collection but, find() does not return anything

100 views Asked by At

I am new to working with Mongo. I recently taken over our LearningLocker database from a previous employee. I can see using show dbs, the database has 4.188GB. But even using a simple db.learninglocker.find() is not returning anything. Any suggestions on how to review the data?

1

There are 1 answers

0
E. Mancebo On

You should pass down an object as argument to the find function:

db.learninglocker.find({})