@@ -68,13 +68,12 @@ parameters:
6868- ``query`` specifies a query filter with the criteria to match
6969 documents to update in your collection.
7070- ``update`` specifies the fields and values to modify in the matching
71- document or documents. For this example, we use the :doc:`Updates
72- builder </fundamentals/builders/updates>` to create the update
73- document.
71+ document or documents. The examples in this section use the
72+ :ref:`updates-builders` to create the update document.
7473- *(Optional)* ``updateOptions`` specifies options that you can set to
7574 customize how the driver performs the update operation. To learn more
7675 about this type, see the API documentation for `UpdateOptions
77- <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/UpdateOptions.html>`__
76+ <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/UpdateOptions.html>`__.
7877
7978You can create the ``updateDocument`` using an ``Updates`` builder as
8079follows:
@@ -83,9 +82,9 @@ follows:
8382
8483 Bson update = Updates.operator(<field>, <value>);
8584
86- See the MongoDB API documentation for a ` complete list of
87- Updates builders and their usage
88- <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Updates.html>`__ .
85+ To view a complete list of Updates builders and their usage, see `Updates
86+ <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/ Updates.html>`__
87+ in the API documentation .
8988
9089Update One Example
9190~~~~~~~~~~~~~~~~~~
@@ -121,8 +120,9 @@ The shipment contains 20 cans of each paint color.
121120To update the inventory, call the ``updateMany()`` method specifying the
122121following:
123122
124- - A query filter that matches all the colors
125- - An update document that contains instructions to increment the ``qty`` field by ``20``
123+ - Query filter that matches all the colors
124+ - Update document that contains instructions to increment the ``qty``
125+ field by ``20``
126126
127127.. literalinclude:: /includes/fundamentals/code-snippets/Update.java
128128 :language: java
@@ -192,11 +192,11 @@ The ``replaceOne()`` method has the following parameters:
192192- ``query`` specifies a query filter with the criteria to match a
193193 document to replace in your collection.
194194- ``replacement`` specifies fields and values of a new ``Document``
195- object to replace in the matched document.
195+ object to replace the matched document.
196196- *(Optional)* ``replaceOptions`` specifies options that you can set to
197197 customize how the driver performs the replace operation. To learn more
198198 about this type, see the API documentation for `ReplaceOptions
199- <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/ReplaceOptions.html>`__
199+ <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/ReplaceOptions.html>`__.
200200
201201Replace One Example
202202~~~~~~~~~~~~~~~~~~~
0 commit comments