File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
reference/operator/aggregation Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ content: |
142
142
143
143
* - ``<field>: <1 or true>``
144
144
145
- - Specifies the inclusion of a field.
145
+ - Specifies the inclusion of a field. Non-zero integers are also
146
+ treated as ``true``.
146
147
147
148
* - ``<field>: <0 or false>``
148
149
@@ -154,7 +155,8 @@ content: |
154
155
you can specify the projection to return the **first** element
155
156
that match the query condition on the array field; e.g.
156
157
``"arrayField.$" : 1``. (Not available for :doc:`views
157
- </core/views>`.)
158
+ </core/views>`.) Non-zero integers are also treated as
159
+ ``true``.
158
160
159
161
* - ``<field>: <array projection>``
160
162
@@ -217,7 +219,8 @@ content: |
217
219
218
220
* - ``<field>: <1 or true>``
219
221
220
- - Specifies the inclusion of a field.
222
+ - Specifies the inclusion of a field. Non-zero integers are also
223
+ treated as ``true``.
221
224
222
225
* - ``<field>: <0 or false>``
223
226
@@ -229,7 +232,8 @@ content: |
229
232
you can specify the projection to return the **first** element
230
233
that match the query condition on the array field; e.g.
231
234
``"arrayField.$" : 1``. (Not available for :doc:`views
232
- </core/views>`.)
235
+ </core/views>`.) Non-zero integers are also treated as
236
+ ``true``.
233
237
234
238
* - ``<field>: <array projection>``
235
239
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ Definition
41
41
42
42
* - ``<field>: <1 or true>``
43
43
44
- - Specifies the inclusion of a field.
44
+ - Specifies the inclusion of a field. Non-zero integers are also
45
+ treated as ``true``.
45
46
46
47
* - ``_id: <0 or false>``
47
48
- Specifies the suppression of the ``_id`` field.
You can’t perform that action at this time.
0 commit comments