You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/crud/update/replace.txt
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
.. _golang-replacement-document:
2
+
.. _golang-replace:
2
3
3
4
=================
4
5
Replace Documents
@@ -23,7 +24,8 @@ Overview
23
24
In this guide, you can learn how to use the {+driver-short+} to perform a replace
24
25
operation on a document in a MongoDB collection. A replace operation performs
25
26
differently than an update operation. An update operation
26
-
modifies only the specified fields in a target document. A replace operation removes all fields in the target document and replaces them with new ones.
27
+
modifies only the specified fields in a target document. A replace operation removes
28
+
all fields in the target document and replaces them with new ones.
27
29
28
30
Parameters
29
31
----------
@@ -122,4 +124,7 @@ API Documentation
122
124
-----------------
123
125
124
126
To learn more about any of the methods or types discussed in this
125
-
guide, see the `ReplaceOne() <{+api+}/mongo#Collection.ReplaceOne>`__ API Documentation.
0 commit comments