Create multiple documents in one call.
Section: Create and read
Insert many documents
javascript
javascript
db.products.insertMany([{ sku: "A101", name: "Mouse", price: 19 }, { sku: "A102", name: "Monitor", price: 199 }])Explanation
Useful for seed data and batch creation workflows.
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