bulkWrite
inline fun <T : Any> MongoCollection<T>.bulkWrite(vararg requests: String, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
inline fun <T : Any> MongoCollection<T>.bulkWrite(vararg requests: WriteModel<T>, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
Executes a mix of inserts, updates, replaces, and deletes.
Return
the result of the bulk write
Parameters
requests
the writes to execute
options
the options to apply to the bulk write operation
inline fun <T : Any> MongoCollection<T>.bulkWrite(clientSession: ClientSession, vararg requests: String, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
inline fun <T : Any> MongoCollection<T>.bulkWrite(clientSession: ClientSession, vararg requests: WriteModel<T>, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
Executes a mix of inserts, updates, replaces, and deletes.
Return
the result of the bulk write
Parameters
clientSession
the client session with which to associate this operation
requests
the writes to execute
options
the options to apply to the bulk write operation