Kate
Kate

Reputation: 1

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

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?

Upvotes: -1

Views: 96

Answers (1)

E. Mancebo
E. Mancebo

Reputation: 754

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

db.learninglocker.find({})

Upvotes: 0

Related Questions