File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ Required Parameters
60
60
61
61
You must pass the following parameters to the ``replace_one`` method:
62
62
63
- - **Query filter**: Matches which documents to update. To learn
63
+ - **Query filter**: Specifies which documents to update. To learn
64
64
more about query filters, see the :ref:`ruby-specify-query`
65
65
guide.
66
66
67
67
- **Replacement document**: Specifies the fields and values that
68
68
you want to replace the existing fields and values with.
69
69
70
- Replace One Document
71
- --------------------
70
+ Replace Example
71
+ ~~~~~~~~~~~~~~~
72
72
73
73
The following example uses the ``replace_one`` method to replace the
74
74
fields and values of a document in which the value of the ``name`` field
@@ -148,7 +148,7 @@ configure the replace operation:
148
148
variables for the operation. Values must be constant or closed
149
149
expressions that don't reference document fields.
150
150
151
- The following code performs the same replace operation as above , but sets the ``upsert``
151
+ The following code performs the same replace operation as the preceding example , but sets the ``upsert``
152
152
option to ``true``. This instructs the driver to insert a new document that has the fields
153
153
and values specified in the replacement document if the query filter doesn't match any
154
154
existing documents:
You can’t perform that action at this time.
0 commit comments