File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,6 @@ field. You cannot use update operations to change the
65
65
``_id`` field. If you attempt to change this field, the update
66
66
methods return a ``WriteError``.
67
67
68
- Sample Data
69
- ~~~~~~~~~~~
70
-
71
-
72
-
73
68
.. _golang-update-document:
74
69
75
70
Parameters
@@ -101,9 +96,10 @@ and descriptions </reference/operator/update-field/>`.
101
96
You can use aggregation pipelines made up of a subset of aggregation
102
97
stages in update operations. To learn more about
103
98
the aggregation stages MongoDB supports in
104
- aggregation pipelines, see our tutorial on performing
105
- :manual:`updates with aggregation pipelines
106
- </tutorial/update-documents-with-aggregation-pipeline/>`.
99
+ aggregation pipelines, see the tutorial on performing
100
+ :manual:`Updates with Aggregation Pipeline
101
+ </tutorial/update-documents-with-aggregation-pipeline/>`
102
+ tutorial in the Server Manual.
107
103
108
104
Return Values
109
105
-------------
@@ -137,7 +133,7 @@ the method selects and updates the first matched document. If no
137
133
documents match the query filter, the update operation makes no
138
134
changes.
139
135
140
- See our :ref:`upsert guide <golang-upsert-guide>`
136
+ See the :ref:`upsert guide <golang-upsert-guide>`
141
137
to learn how to insert a new document if no documents match the query filter.
142
138
143
139
UpdateOne() Example
You can’t perform that action at this time.
0 commit comments