Skip to content

Commit c15a17b

Browse files
committed
LM feedback
1 parent a583135 commit c15a17b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

source/crud/update.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@ Each update method requires the following parameters:
6161
:manual:`Field Update Operators guide page</reference/operator/update-field/>` in the
6262
{+mdb-server+} manual.
6363

64-
Upsert Option
65-
~~~~~~~~~~~~~
66-
67-
The ``upsert`` parameter allows you to use the ``update_one()`` and
68-
``update_many()`` operations to perform a conditional operation:
69-
70-
- If the specified document exists, the command updates it
71-
- If the specified document does not exist, the command creates a new document
72-
with the specified parameter.
73-
74-
For more information, see the :ref:`<ruby-upsert-example>` or the :ref:`options
75-
table<ruby-update-options-table>` on this page.
76-
7764
Update One Document Example
7865
~~~~~~~~~~~~~~~~~~~~~~~~~~~
7966

@@ -118,6 +105,19 @@ where the value of the ``name`` field is ``"Starbucks"``. The update document us
118105

119106
11 document(s) updated
120107

108+
Upsert Option
109+
~~~~~~~~~~~~~
110+
111+
The ``upsert`` parameter allows you to use the ``update_one()`` and
112+
``update_many()`` operations to perform a conditional operation:
113+
114+
- If the specified document exists, the command updates it.
115+
- If the specified document does not exist, the command creates a new document
116+
with the specified parameter.
117+
118+
For more information, see the :ref:`<ruby-upsert-example>` section or the :ref:`options
119+
table <ruby-update-options-table>` on this page.
120+
121121
Customize the Update Operation
122122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123123

0 commit comments

Comments
 (0)