File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -209,26 +209,18 @@ guide.
209
209
Define an Update Document
210
210
-------------------------
211
211
212
- You can use the ``Stage::set() `` factory method when creating update
213
- documents. Update documents describe the updates to make to target
212
+ You can use factory methods from the ``Stage`` builder class to create
213
+ update documents. Update documents describe the updates to make to target
214
214
documents. To learn more about updating documents, see the
215
215
:ref:`php-write-update` guide.
216
216
217
- .. important:: Only $set Operator Supported in Update Documents
218
-
219
- The only update operation that you can express with builders uses
220
- the ``$set`` operator. This operator allows you to replace the value of
221
- a field with a specified value or create a new field that has a specified
222
- value. To learn more, see the :manual:`$set </reference/operator/update/set/>`
223
- reference in the {+mdb-server+} manual.
224
-
225
217
The following steps describe how to create an update document by using
226
218
builders:
227
219
228
220
1. Create a ``Pipeline`` instance.
229
221
230
- #. Pass one or more ``$set`` stages by calling the ``Stage::set()``
231
- method and passing a field name and a value .
222
+ #. Pass one or more stages by calling methods from the ``Stage`` class
223
+ such as ``Stage::set()`` and passing field names and values .
232
224
233
225
The following code shows the template to define an update by using
234
226
builders:
You can’t perform that action at this time.
0 commit comments