- Reference >
mongo
Shell Methods >- Bulk Operation Methods >
- Bulk.insert()
Bulk.insert()¶
On this page
Description¶
-
Bulk.
insert
(<document>)¶ New in version 2.6.
Adds an insert operation to a bulk operations list.
Bulk.insert()
accepts the following parameter:Parameter Type Description doc
document Document to insert. The size of the document must be less than or equal to the maximum BSON document size
.