MongoDB 8 · Create, read, update, delete

Insert several documents

Add an array of documents in one call.

db.users.insertMany([{ name: "Grace" }, { name: "Linus" }])

Official MongoDB 8 documentation

More create, read, update, delete commands

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

Was this page helpful?