We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765ad11 commit 4b05e53Copy full SHA for 4b05e53
source/fundamentals/crud/write-operations/modify.txt
@@ -90,6 +90,12 @@ Update documents use the following format:
90
See the MongoDB server manual for a :manual:`complete list of update operators
91
and descriptions </reference/operator/update-field/>`.
92
93
+.. tip::
94
+
95
+ ``UpdateOne()`` updates the first document that matches the query filter
96
+ you provide. To ensure that you update the correct document, You can use the ``sort``
97
+ option to specify the order in which the operation finds documents.
98
99
.. note:: Aggregation Pipelines in Update Operations
100
101
If you are using MongoDB Server version 4.2 or later, you can use aggregation
0 commit comments