Skip to content

Commit ad2980c

Browse files
asya999kay-kim
authored andcommitted
Clarify any constant can be used for _id for all
1 parent eaec3af commit ad2980c

File tree

1 file changed

+2
-2
lines changed
  • source/reference/operator/aggregation

1 file changed

+2
-2
lines changed

source/reference/operator/aggregation/group.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Definition
3030
{ $group: { _id: <expression>, <field1>: { <accumulator1> : <expression1> }, ... } }
3131

3232
The ``_id`` field is *mandatory*; however, you can specify an
33-
``_id`` value of null to calculate accumulated values for all the
34-
input documents as a whole.
33+
``_id`` value of null, or any other constant value, to calculate
34+
accumulated values for all the input documents as a whole.
3535

3636
The remaining computed fields are *optional* and computed using the
3737
``<accumulator>`` operators.

0 commit comments

Comments
 (0)