MongoDB 8 · Create, read, update, delete
Find all documents
Return documents from a collection. The shell shows the first 20.
db.users.find()
Official MongoDB 8 documentation
More create, read, update, delete commands
- Insert a document
- Insert several documents
- Find with a filter and projection
- Find one document
- Sort and paginate
- Count matching documents
All create, read, update, delete commands · MongoDB 8 cheatsheet