@@ -501,19 +501,6 @@ document that has a ``name`` value of ``"Villa Berulia"`` in the
501
501
to ``true`` in all documents that have a ``title`` value of ``"Carrie"``
502
502
in the ``movies`` collection.
503
503
504
- If multiple documents match the query filter specified in
505
- a ``ClientNamespacedUpdateOneModel`` instance, the operation updates the
506
- first result. You can specify a sort order in a `ClientUpdateOneOptions
507
- <{+core-api+}/com/mongodb/client/model/bulk/ClientUpdateOneOptions.html>`__
508
- instance to apply an order to matched documents before the server
509
- performs the update operation, as shown in the following code:
510
-
511
- .. code-block:: kotlin
512
-
513
- val options = ClientUpdateOneOptions
514
- .clientUpdateOneOptions()
515
- .sort(Sorts.ascending("_id"))
516
-
517
504
.. _kotlin-sync-client-bulk-write-replace:
518
505
519
506
Replace Operations
@@ -535,19 +522,6 @@ in the ``restaurants`` collection is replaced with a new document. The document
535
522
the ``movies`` collection that has an ``_id`` value of ``1``
536
523
is also replaced with a new document.
537
524
538
- If multiple documents match the query filter specified in
539
- a ``ClientNamespacedReplaceOneModel`` instance, the operation replaces the
540
- first result. You can specify a sort order in a `ClientReplaceOneOptions
541
- <{+core-api+}/com/mongodb/client/model/bulk/ClientReplaceOneOptions.html>`__
542
- instance to apply an order to matched documents before the driver
543
- performs the replace operation, as shown in the following code:
544
-
545
- .. code-block:: kotlin
546
-
547
- val options = ClientReplaceOneOptions
548
- .clientReplaceOneOptions()
549
- .sort(Sorts.ascending("_id"))
550
-
551
525
Perform the Bulk Operation
552
526
~~~~~~~~~~~~~~~~~~~~~~~~~~
553
527
0 commit comments