suspend fun bulkWrite(requests: List<WriteModel<out T>>, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
(source)
Executes a mix of inserts, updates, replaces, and deletes.
requests
- the writes to execute
options
- the options to apply to the bulk write operation
Return
the BulkWriteResult
suspend fun bulkWrite(clientSession: ClientSession, requests: List<WriteModel<out T>>, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
(source)
Executes a mix of inserts, updates, replaces, and deletes.
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
Return
the BulkWriteResult
Mongodb
.server.release 3.6
Since
1.7
suspend fun bulkWrite(vararg requests: WriteModel<T>, options: BulkWriteOptions = BulkWriteOptions()): BulkWriteResult
(source)
Executes a mix of inserts, updates, replaces, and deletes.
requests
- the writes to execute
options
- the options to apply to the bulk write operation
Return
the result of the bulk write