Skip to content

SQL Reference

INSERTMANY

db.collection.insertMany(documents, options)

Section titled “db.collection.insertMany(documents, options)”
  • documents: An array of documents to insert.
  • options: Optional settings such as ordered and writeConcern.
db.users.insertMany([{ name: "Ada" }, { name: "Alan" }])