@@ -13,11 +13,12 @@ Modify Documents
1313Overview
1414--------
1515
16- You can modify documents in a MongoDB collection using **update**
17- and **replace** operations. Update operations change
18- specified fields in one or more documents and leave other fields and values
19- unchanged. Replace operations remove all fields except the ``_id`` field
20- in an existing document and substitute them with specified fields and values.
16+ You can modify documents in a MongoDB collection by using **update**
17+ and **replace** operations. Update operations modify the fields and
18+ values of a document while keeping other fields and values
19+ unchanged. Replace operations substitute all fields and values
20+ in an existing document with specified fields and values while keeping
21+ the ``_id`` field value unchanged.
2122
2223The {+driver-short+} provides the following methods to change documents:
2324
@@ -26,15 +27,16 @@ The {+driver-short+} provides the following methods to change documents:
2627- ``replaceOne()``
2728
2829.. tip:: Interactive Lab
29-
30- You can complete an interactive lab that uses the
31- ``updateMany()`` method to modify data in the
32- :ref:`node-update-instruqt-lab` section of this guide.
30+
31+ You can complete a short interactive lesson that demonstrates how to
32+ modify data by using the ``updateMany()`` method in an in-browser coding
33+ experience. To learn more, see the :ref:`node-update-instruqt-lab`
34+ section of this guide.
3335
3436.. _updateDocuments:
3537
36- Update
37- ------
38+ Update Documents
39+ ----------------
3840
3941To perform an update to one or more documents, create an **update
4042document** that specifies the **update operator** (the type of update to
@@ -138,8 +140,8 @@ for more information on :manual:`unique indexes </core/index-unique/>`.
138140.. _node-fundamentals-replaceone:
139141.. _replacementDocument:
140142
141- Replace
142- -------
143+ Replace a Document
144+ ------------------
143145
144146To perform a replacement operation, create a **replacement document** that
145147consists of the fields and values that you would like to use in your
@@ -218,11 +220,16 @@ for more information on :manual:`unique indexes </core/index-unique/>`.
218220
219221.. _node-update-instruqt-lab:
220222
221- Interactive Update Operation Lab
222- --------------------------------
223+ Complete an Interactive Lesson
224+ ------------------------------
223225
224226This lab helps you understand how to perform update operations in MongoDB
225- by using the ``updateMany()`` method. You can complete this lab without
226- installing MongoDB or a code editor.
227+ by using the ``updateMany()`` method. You can complete this lab directly in
228+ your browser window without installing MongoDB or a code editor.
229+
230+ .. tip::
231+
232+ To expand the lab to a full-screen format, click the full-screen
233+ button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
227234
228235.. instruqt:: /mongodb-docs/tracks/update-node?token=em_FEr9KfMh4WQ0VosU
0 commit comments