Skip to content

Commit 675c146

Browse files
committed
Fixed $group on compound keys
1 parent 8ac4f53 commit 675c146

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)