@@ -45,15 +45,14 @@ To learn how to create a free MongoDB Atlas cluster and load the sample datasets
4545Projection 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
5352Specify 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``
5756option 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:
114113Specify 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``
118117option in a parameter to the ``find`` method. To set this option, use the
119118following syntax:
120119
@@ -124,7 +123,7 @@ following syntax:
124123
125124The following example uses the ``find`` method to find all restaurants in which the ``name``
126125field 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
128127in the result:
129128
130129.. io-code-block::
0 commit comments