@@ -61,19 +61,6 @@ Each update method requires the following parameters:
61
61
:manual:`Field Update Operators guide page</reference/operator/update-field/>` in the
62
62
{+mdb-server+} manual.
63
63
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
-
77
64
Update One Document Example
78
65
~~~~~~~~~~~~~~~~~~~~~~~~~~~
79
66
@@ -118,6 +105,19 @@ where the value of the ``name`` field is ``"Starbucks"``. The update document us
118
105
119
106
11 document(s) updated
120
107
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
+
121
121
Customize the Update Operation
122
122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123
123
0 commit comments