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

All create, read, update, delete commands · MongoDB 8 cheatsheet

Was this page helpful?