@@ -502,7 +502,7 @@ Update Example
502
502
~~~~~~~~~~~~~~
503
503
504
504
The following example shows how to use the ``bulkWrite()`` method to update
505
- existing documents in the ``db.people`` and ``db.things`` collections.
505
+ existing documents in the ``db.people`` and ``db.things`` collections:
506
506
507
507
.. literalinclude:: /includes/fundamentals/code-snippets/bulk-write/ClientBulkWrite.java
508
508
:language: java
@@ -513,12 +513,12 @@ existing documents in the ``db.people`` and ``db.things`` collections.
513
513
This example increments the value of the ``age`` field by ``1`` in the
514
514
document that has a ``name`` value of ``"Freya Polk"`` in the ``people``
515
515
collection. It also sets the value of the ``manufacturer`` field to
516
- ``"Premium Technologies"`` in all document that have a ``category``
516
+ ``"Premium Technologies"`` in all documents that have a ``category``
517
517
value of ``"electronic"`` in the ``things`` collection.
518
518
519
519
If multiple documents match the query filter specified in
520
520
a ``ClientNamespacedUpdateOneModel`` instance, the operation updates the
521
- first result. You can specify a sort in a `ClientUpdateOneOptions
521
+ first result. You can specify a sort order in a `ClientUpdateOneOptions
522
522
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/bulk/ClientUpdateOneOptions.html>`__
523
523
instance to apply an order to matched documents before the driver
524
524
performs the update operation, as shown in the following code:
@@ -535,7 +535,7 @@ Replace Example
535
535
~~~~~~~~~~~~~~~
536
536
537
537
The following example shows how to use the ``bulkWrite()`` method to replace
538
- existing documents in the ``db.people`` and ``db.things`` collections.
538
+ existing documents in the ``db.people`` and ``db.things`` collections:
539
539
540
540
.. literalinclude:: /includes/fundamentals/code-snippets/bulk-write/ClientBulkWrite.java
541
541
:language: java
@@ -550,7 +550,7 @@ is replaced with a new document.
550
550
551
551
If multiple documents match the query filter specified in
552
552
a ``ClientNamespacedReplaceOneModel`` instance, the operation replaces the
553
- first result. You can specify a sort in a `ClientReplaceOneOptions
553
+ first result. You can specify a sort order in a `ClientReplaceOneOptions
554
554
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/bulk/ClientReplaceOneOptions.html>`__
555
555
instance to apply an order to matched documents before the driver
556
556
performs the replace operation, as shown in the following code:
0 commit comments