File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
source/fundamentals/crud/read-operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ as a parameter. This method can be chained to include multiple fields in the pro
6464
6565The following example uses the ``Find()`` method to find all restaurants in which the ``name``
6666field value is ``"Emerald Pub"``. Then, the code calls the ``Project()``
67- method to instruct the find operation to include the ``name`` and ``address `` fields
67+ method to instruct the find operation to include the ``name`` and ``cuisine `` fields
6868in the result:
6969
7070.. io-code-block::
@@ -111,7 +111,7 @@ excludes the ``_id`` field from the projection:
111111Specify Fields to Exclude
112112~~~~~~~~~~~~~~~~~~~~~~~~~
113113
114- To specify the fields to include from the result, chain the ``Project()`` method
114+ To specify the fields to exclude from the result, chain the ``Project()`` method
115115to the ``Find()`` method. You can exclude fields in your projection by using
116116the ``Builders<T>.Projection.Exclude()`` method and passing in the field name to exclude
117117as a parameter. This method can be chained to exclude multiple fields in the projection.
You can’t perform that action at this time.
0 commit comments