Method BulkWrite
BulkWrite(IReadOnlyList<BulkWriteModel>, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
public ClientBulkWriteResult BulkWrite(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
BulkWrite(IClientSessionHandle, IReadOnlyList<BulkWriteModel>, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
public ClientBulkWriteResult BulkWrite(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.