Method BulkWriteAsync
BulkWriteAsync(IReadOnlyList<BulkWriteModel>, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
Task<ClientBulkWriteResult> BulkWriteAsync(IReadOnlyList<BulkWriteModel> models, ClientBulkWriteOptions options = null, CancellationToken cancellationToken = default)
Parameters
models
IReadOnlyList<BulkWriteModel>List of operations to execute.
options
ClientBulkWriteOptionsThe bulk write options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
BulkWriteAsync(IClientSessionHandle, IReadOnlyList<BulkWriteModel>, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
Task<ClientBulkWriteResult> BulkWriteAsync(IClientSessionHandle session, IReadOnlyList<BulkWriteModel> models, ClientBulkWriteOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
models
IReadOnlyList<BulkWriteModel>List of operations to execute.
options
ClientBulkWriteOptionsThe bulk write options.
cancellationToken
CancellationTokenThe cancellation token.