Skip to content

DOCSP-15266 indicate results of other projector value inputs #5446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions source/includes/extracts-projection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ content: |

* - ``<field>: <1 or true>``

- Specifies the inclusion of a field.
- Specifies the inclusion of a field. Non-zero integers are also
treated as ``true``.

* - ``<field>: <0 or false>``

Expand All @@ -154,7 +155,8 @@ content: |
you can specify the projection to return the **first** element
that match the query condition on the array field; e.g.
``"arrayField.$" : 1``. (Not available for :doc:`views
</core/views>`.)
</core/views>`.) Non-zero integers are also treated as
``true``.

* - ``<field>: <array projection>``

Expand Down Expand Up @@ -217,7 +219,8 @@ content: |

* - ``<field>: <1 or true>``

- Specifies the inclusion of a field.
- Specifies the inclusion of a field. Non-zero integers are also
treated as ``true``.

* - ``<field>: <0 or false>``

Expand All @@ -229,7 +232,8 @@ content: |
you can specify the projection to return the **first** element
that match the query condition on the array field; e.g.
``"arrayField.$" : 1``. (Not available for :doc:`views
</core/views>`.)
</core/views>`.) Non-zero integers are also treated as
``true``.

* - ``<field>: <array projection>``

Expand Down
3 changes: 2 additions & 1 deletion source/reference/operator/aggregation/project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Definition

* - ``<field>: <1 or true>``

- Specifies the inclusion of a field.
- Specifies the inclusion of a field. Non-zero integers are also
treated as ``true``.

* - ``_id: <0 or false>``
- Specifies the suppression of the ``_id`` field.
Expand Down