MongoDB 8 · Create, read, update, delete
Find one document
Return the first document that matches.
db.users.findOne({ email: "[email protected]" })
Official MongoDB 8 documentation
More create, read, update, delete commands
- Insert a document
- Insert several documents
- Find all documents
- Find with a filter and projection
- Sort and paginate
- Count matching documents
All create, read, update, delete commands · MongoDB 8 cheatsheet