Docs Menu

Insert Methods

MongoDB provides the following methods for inserting documents into a collection:

Inserts a single document into a collection.
db.collection.insertMany() inserts multiple documents into a collection.
db.collection.insert() inserts a single document or multiple documents into a collection.

The following methods can also add new documents to a collection:

See the individual reference pages for the methods for more information and examples.

Give Feedback
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.