# Adding Many Documents with insertMany

insertMany adds a whole list of documents in one call and tells you each one's \_id; a duplicate \_id stops it unless you set ordered to false, and load() runs a whole file of them.

![Cheat sheet: Adding Many Documents with insertMany](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/91a4540e51e446c7abe4f6653976d8ce.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: \_id and ObjectId, Duplicate Key Error, insertOne and insertMany, mongodb
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-insertmany-adding-many-documents-cheat-sheet
