insert Many
Inserts one or more documents. A call to this method is equivalent to a call to the bulkWrite
method
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Return
the insert many result
Parameters
the documents to insert
the options to apply to the operation
Throws
if there's an exception in the bulk write operation
if the write failed due to a specific command exception
if the write failed due some other failure
if the documents list is null or empty, or any of the documents in the list are null
Inserts one or more documents. A call to this method is equivalent to a call to the bulkWrite
method
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Return
the insert many result
Parameters
the client session with which to associate this operation
the documents to insert
the options to apply to the operation
Throws
if there's an exception in the bulk write operation
if the write failed due to a specific command exception
if the write failed due some other failure
if the documents list is null or empty, or any of the documents in the list are null