@@ -178,8 +178,8 @@ The following example creates an instance of ``DeleteMany``:
178
178
179
179
.. _kotlin-sync-bulkwrite-method:
180
180
181
- Call the bulkWrite() Method
182
- ---------------------------
181
+ Perform the Bulk Operation
182
+ --------------------------
183
183
184
184
After you define a class instance for each operation you want to perform,
185
185
pass a list of these instances to the ``bulkWrite()`` method.
@@ -213,8 +213,8 @@ operation that failed, and details about the exception.
213
213
target collection. The driver reports all write concern errors after
214
214
attempting all operations, regardless of execution order.
215
215
216
- Customize Bulk Write Operations
217
- -------------------------------
216
+ Customize Bulk Write Operation
217
+ ------------------------------
218
218
219
219
The ``bulkWrite()`` method optionally accepts a parameter which
220
220
specifies options you can use to configure the bulk write
@@ -256,7 +256,7 @@ configure a ``BulkWriteOptions`` instance:
256
256
variables for the operation. Values must be constant or closed
257
257
expressions that don't reference document fields.
258
258
259
- The following code creates options and uses the ``ordered()`` method to
259
+ The following code creates options and uses the ``ordered(false )`` option to
260
260
specify an unordered bulk write. Then, the example uses the
261
261
``bulkWrite()`` method to perform a bulk operation:
262
262
@@ -271,8 +271,8 @@ reports the errors only after attempting all operations.
271
271
272
272
.. note::
273
273
274
- Unordered bulk operations do not guarantee an order of execution. The order can
275
- differ from the way you list them to optimize the runtime.
274
+ Unordered bulk operations do not guarantee an order of execution. The
275
+ order can differ from the way you list them to optimize the runtime.
276
276
277
277
Return Value
278
278
------------
@@ -332,3 +332,5 @@ guide, see the following API Documentation:
332
332
- `ReplaceOneModel <{+core-api+}/com/mongodb/client/model/ReplaceOneModel.html>`__
333
333
- `UpdateManyModel <{+core-api+}/com/mongodb/client/model/UpdateManyModel.html>`__
334
334
- `UpdateOneModel <{+core-api+}/com/mongodb/client/model/UpdateOneModel.html>`__
335
+ - `BulkWriteOptions <{+core-api+}/com/mongodb/client/model/BulkWriteOptions.html>`__
336
+ - `BulkWriteResult <{+core-api+}/com/mongodb/bulk/BulkWriteResult.html>`__
0 commit comments