Skip to content

Commit 924ad2e

Browse files
committed
NR PR fixes 1
1 parent cfcf548 commit 924ad2e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

source/fundamentals/builders/updates.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _updates-builders:
2+
13
================
24
Updates Builders
35
================
@@ -8,8 +10,6 @@ Updates Builders
810
:depth: 2
911
:class: singlecol
1012

11-
.. _updates-builders:
12-
1313
Overview
1414
--------
1515

source/fundamentals/crud/write-operations/modify.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7978
You can create the ``updateDocument`` using an ``Updates`` builder as
8079
follows:
@@ -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

9089
Update One Example
9190
~~~~~~~~~~~~~~~~~~
@@ -121,8 +120,9 @@ The shipment contains 20 cans of each paint color.
121120
To update the inventory, call the ``updateMany()`` method specifying the
122121
following:
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

201201
Replace One Example
202202
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)