Skip to content

Commit f325f4b

Browse files
committed
SA feedback
1 parent d9536cd commit f325f4b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/read/project.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ To learn how to create a free MongoDB Atlas cluster and load the sample datasets
4545
Projection Types
4646
----------------
4747

48-
You can use a projection to specify which fields to include in a return
49-
document, or to specify which fields to exclude. You cannot combine inclusion and
50-
exclusion statements in a single projection, unless you are excluding the
51-
``_id`` field.
48+
You can use a projection to specify which fields to include or exclude in
49+
a return Document. You cannot combine inclusion and exclusion statements in
50+
a single projection, unless you are excluding the ``_id`` field.
5251

5352
Specify Fields to Include
5453
~~~~~~~~~~~~~~~~~~~~~~~~~
5554

56-
To specify the fields to include in the result, specify the ``projection``
55+
To include specific fields in a read operation result, specify the ``projection``
5756
option in a parameter to the ``find`` method. To set this option, use the following syntax:
5857

5958
.. code-block:: ruby
@@ -114,7 +113,7 @@ excludes the ``_id`` field from the projection:
114113
Specify Fields to Exclude
115114
~~~~~~~~~~~~~~~~~~~~~~~~~
116115

117-
To specify the fields to exclude from the result, specify the ``projection``
116+
To exclude specific fields from a read operation result, specify the ``projection``
118117
option in a parameter to the ``find`` method. To set this option, use the
119118
following syntax:
120119

@@ -124,7 +123,7 @@ following syntax:
124123

125124
The following example uses the ``find`` method to find all restaurants in which the ``name``
126125
field value is ``'Emerald Pub'``. Then, the code uses the ``projection`` option
127-
to instruct the find operation to omit the ``name`` and ``address`` fields
126+
to instruct the find operation to omit the ``grades`` and ``address`` fields
128127
in the result:
129128

130129
.. io-code-block::

0 commit comments

Comments
 (0)