Skip to content

Commit 3724c51

Browse files
committed
JT tech review comments
1 parent bdc6d51 commit 3724c51

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

source/builders.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,26 +209,18 @@ guide.
209209
Define an Update Document
210210
-------------------------
211211

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
214214
documents. To learn more about updating documents, see the
215215
:ref:`php-write-update` guide.
216216

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-
225217
The following steps describe how to create an update document by using
226218
builders:
227219

228220
1. Create a ``Pipeline`` instance.
229221

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.
232224

233225
The following code shows the template to define an update by using
234226
builders:

0 commit comments

Comments
 (0)