File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
source/fundamentals/crud/write-operations Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ the ``age`` field in a document where the ``_id`` is ``2``:
211
211
If multiple documents match the query filter specified in
212
212
the ``UpdateOneModel`` instance, the operation updates the first
213
213
result. You can specify a sort in an ``UpdateOptions`` instance to apply
214
- an order to matched documents before the driver performs the replace
214
+ an order to matched documents before the driver performs the update
215
215
operation, as shown in the following code:
216
216
217
217
.. code-block:: java
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ The following example demonstrates how to change the value of the
100
100
:end-before: end updateOneExample
101
101
102
102
If multiple documents match the query filter specified in
103
- the ``updateOne()`` method, it replaces the first result. You can
103
+ the ``updateOne()`` method, it updates the first result. You can
104
104
specify a sort in an ``UpdateOptions`` instance to apply an order to
105
- matched documents before the driver performs the replace operation, as
105
+ matched documents before the driver performs the update operation, as
106
106
shown in the following code:
107
107
108
108
.. literalinclude:: /includes/fundamentals/code-snippets/Update.java
You can’t perform that action at this time.
0 commit comments