Return a single document by filter.
Section: Create and read
Find one matching document
javascript
javascript
db.products.findOne({ sku: "A100" })Explanation
Convenient when you expect or only need one match.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Create and read