Skip to content

Commit 76079d4

Browse files
committed
CC suggestions
(cherry picked from commit 4b1f10b1b28d649cbe05cab73d37fdf8e951f92d)
1 parent 928a1f1 commit 76079d4

File tree

3 files changed

+56
-37
lines changed

3 files changed

+56
-37
lines changed

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ by calling the ``find()`` or ``findOne()`` method.
2121

2222
.. tip:: Interactive Lab
2323

24-
You can complete an interactive lab that uses the
25-
``find()`` method to retrieve data in the
26-
:ref:`node-retrieve-instruqt-lab` section of this guide.
24+
You can complete a short interactive lesson that demonstrates how to
25+
retrieve data by using the ``find()`` method in an in-browser coding
26+
experience. To learn more, see the :ref:`node-retrieve-instruqt-lab`
27+
section of this guide.
2728

2829
You can also further specify the information that the find operation
2930
returns by specifying optional parameters or by chaining other methods,
@@ -52,8 +53,8 @@ matching data is inserted.
5253
.. include:: /includes/fact-atlas-compatible.rst
5354
.. include:: /includes/fact-atlas-link.rst
5455

55-
Find
56-
----
56+
Find Documents
57+
--------------
5758

5859
You can call the ``find()`` method on a ``Collection`` object. The
5960
method accepts a query document that describes the documents you want to
@@ -131,8 +132,8 @@ matching document or ``null`` if there are no matches.
131132
See the :ref:`find() <node-usage-find>` and :ref:`findOne()
132133
<node-usage-findone>` for fully-runnable examples.
133134

134-
Aggregate
135-
---------
135+
Aggregate Data from Documents
136+
-----------------------------
136137

137138
If you want to run a custom processing pipeline to retrieve data from your
138139
database, you can use the ``aggregate()`` method. This method accepts
@@ -177,8 +178,8 @@ for more information on how to construct an aggregation pipeline.
177178

178179
.. _node-fundamentals-watch:
179180

180-
Watch / Subscribe
181-
-----------------
181+
Monitor Data Changes
182+
--------------------
182183

183184
You can use the ``watch()`` method to monitor a collection for changes to
184185
a collection that match certain criteria. These changes include inserted,
@@ -204,11 +205,16 @@ the :ref:`change streams <node-usage-watch>` usage example.
204205

205206
.. _node-retrieve-instruqt-lab:
206207

207-
Interactive Find Operation Lab
208+
Complete an Interactive Lesson
208209
------------------------------
209210

210211
This lab helps you understand how to perform read operations in MongoDB
211-
by using the ``find()`` method. You can complete this lab without
212-
installing MongoDB or a code editor.
212+
by using the ``find()`` method. You can complete this lab directly in
213+
your browser window without installing MongoDB or a code editor.
214+
215+
.. tip::
216+
217+
To expand the lab to a full-screen format, click the full-screen
218+
button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
213219

214220
.. instruqt:: /mongodb-docs/tracks/find-node?token=em_OVNHWCPNPMLwNOCm

source/fundamentals/crud/write-operations/insert.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ operations:
2929
- ``bulkWrite()``
3030

3131
.. tip:: Interactive Lab
32-
33-
You can complete an interactive lab that uses the
34-
``insertOne()`` method to insert data in the
35-
:ref:`node-insert-instruqt-lab` section of this guide.
32+
33+
You can complete a short interactive lesson that demonstrates how to
34+
insert data by using the ``insertOne()`` method in an in-browser coding
35+
experience. To learn more, see the :ref:`node-insert-instruqt-lab`
36+
section of this guide.
3637

3738
The following sections focus on ``insertOne()`` and ``insertMany()``. For an
3839
example on how to use the ``bulkWrite()`` method, see our runnable :doc:`Bulk
@@ -233,11 +234,16 @@ section, see the following resources:
233234

234235
.. _node-insert-instruqt-lab:
235236

236-
Interactive Insert Operation Lab
237-
--------------------------------
237+
Complete an Interactive Lesson
238+
------------------------------
238239

239240
This lab helps you understand how to perform insert operations in MongoDB
240-
by using the ``insertOne()`` method. You can complete this lab without
241-
installing MongoDB or a code editor.
241+
by using the ``insertOne()`` method. You can complete this lab directly in
242+
your browser window without installing MongoDB or a code editor.
243+
244+
.. tip::
245+
246+
To expand the lab to a full-screen format, click the full-screen
247+
button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
242248

243249
.. instruqt:: /mongodb-docs/tracks/insert-node?token=em_S6rjcmIzxGB4Sz_y

source/fundamentals/crud/write-operations/modify.txt

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ Modify Documents
1313
Overview
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

2223
The {+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

3941
To perform an update to one or more documents, create an **update
4042
document** 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

144146
To perform a replacement operation, create a **replacement document** that
145147
consists 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

224226
This 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

Comments
 (0)