Skip to content

Commit bedcf96

Browse files
author
Sam Kleinman
committed
merge: minor correction
2 parents 2e6b296 + 675c146 commit bedcf96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/aggregation/group.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $group (aggregation)
2020

2121
.. code-block:: javascript
2222

23-
{ _id : { author: 1, pageViews: 1, posted: 1 } }
23+
{ _id : { author: '$author', pageViews: '$pageViews', posted: '$posted' } }
2424

2525
With the exception of the ``_id`` field, :pipeline:`$group` cannot
2626
output nested documents.

0 commit comments

Comments
 (0)