@@ -56,18 +56,18 @@ A Note About ``_id``
56
56
Each document in a MongoDB collection has a unique and immutable ``_id``
57
57
field. You cannot use update and replace operations to change the
58
58
``_id`` field. If you attempt to change this field, the update and
59
- replace methods return a `WriteError <{+godocs +}/mongo#WriteError>`__.
59
+ replace methods return a `WriteError <{+api +}/mongo#WriteError>`__.
60
60
61
61
.. _updateDocuments:
62
62
63
63
Update
64
64
------
65
65
66
- Use either `UpdateOne() <{+godocs +}/mongo#Collection.UpdateOne>`__ or
67
- `UpdateByID() <{+godocs +}/mongo#Collection.UpdateByID>`__ to update a
66
+ Use either `UpdateOne() <{+api +}/mongo#Collection.UpdateOne>`__ or
67
+ `UpdateByID() <{+api +}/mongo#Collection.UpdateByID>`__ to update a
68
68
single document.
69
69
70
- Use `UpdateMany() <{+godocs +}/mongo#Collection.UpdateMany>`__ to update
70
+ Use `UpdateMany() <{+api +}/mongo#Collection.UpdateMany>`__ to update
71
71
multiple documents.
72
72
73
73
@@ -101,7 +101,7 @@ Return Values
101
101
~~~~~~~~~~~~~
102
102
103
103
``UpdateOne()``, ``UpdateByID()``, and ``UpdateMany()`` return an
104
- `UpdateResult <{+godocs +}/mongo#UpdateResult>`__ type that
104
+ `UpdateResult <{+api +}/mongo#UpdateResult>`__ type that
105
105
contains information about the update operation if the operation is
106
106
successful. The ``UpdateResult`` type contains the following properties:
107
107
@@ -178,7 +178,7 @@ The following shows the updated document resulting from the preceding update ope
178
178
Replace
179
179
-------
180
180
181
- Use the `ReplaceOne() <{+godocs +}/mongo#Collection.ReplaceOne>`__ method
181
+ Use the `ReplaceOne() <{+api +}/mongo#Collection.ReplaceOne>`__ method
182
182
to replace a single document.
183
183
184
184
Parameters
@@ -195,7 +195,7 @@ documents use the following format:
195
195
Return Values
196
196
~~~~~~~~~~~~~
197
197
198
- ``ReplaceOne()`` returns an `UpdateResult <{+godocs +}/mongo#UpdateResult>`__ type that
198
+ ``ReplaceOne()`` returns an `UpdateResult <{+api +}/mongo#UpdateResult>`__ type that
199
199
contains information about the replace operation if the operation is
200
200
successful. The ``UpdateResult`` type contains the following properties:
201
201
0 commit comments