Command
db.users.find()
Explanation
Fetches all documents from a collection. Useful for viewing all data in the collection.
Examples
Retrieve all products
db.products.find()
db.users.find()
Fetches all documents from a collection. Useful for viewing all data in the collection.
Retrieve all products
db.products.find()