mongodb/mongodb-find-all

Find All Documents

Retrieve all documents from a collection

mongodb
find
query

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()