Create a starter document.
Section: Collection bootstrap
Insert one sample document
javascript
javascript
db.users.insertOne({ name: "Ada", email: "ada@example.com", active: true })Explanation
A collection will be created automatically if it does not already exist.
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 Collection bootstrap