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

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

Was this page helpful?