From 8f16660f16eb9f279aa1cf8586d6413b8de978d9 Mon Sep 17 00:00:00 2001 From: alisonjhuh Date: Fri, 11 Jun 2021 11:44:16 -0700 Subject: [PATCH] DOCSP-15266 indicate results of other projector value inputs --- source/includes/extracts-projection.yaml | 12 ++++++++---- source/reference/operator/aggregation/project.txt | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/source/includes/extracts-projection.yaml b/source/includes/extracts-projection.yaml index 3671fee1fa1..7e80b1f7026 100644 --- a/source/includes/extracts-projection.yaml +++ b/source/includes/extracts-projection.yaml @@ -142,7 +142,8 @@ content: | * - ``: <1 or true>`` - - Specifies the inclusion of a field. + - Specifies the inclusion of a field. Non-zero integers are also + treated as ``true``. * - ``: <0 or false>`` @@ -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 - `.) + `.) Non-zero integers are also treated as + ``true``. * - ``: `` @@ -217,7 +219,8 @@ content: | * - ``: <1 or true>`` - - Specifies the inclusion of a field. + - Specifies the inclusion of a field. Non-zero integers are also + treated as ``true``. * - ``: <0 or false>`` @@ -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 - `.) + `.) Non-zero integers are also treated as + ``true``. * - ``: `` diff --git a/source/reference/operator/aggregation/project.txt b/source/reference/operator/aggregation/project.txt index 935f4ca0a9a..b6915f59766 100644 --- a/source/reference/operator/aggregation/project.txt +++ b/source/reference/operator/aggregation/project.txt @@ -41,7 +41,8 @@ Definition * - ``: <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.