From 675c14675e409a485371d348a85d3156445933a0 Mon Sep 17 00:00:00 2001 From: Mikael Koskinen Date: Mon, 8 Oct 2012 08:23:47 +0300 Subject: [PATCH] Fixed $group on compound keys --- source/reference/aggregation/group.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/aggregation/group.txt b/source/reference/aggregation/group.txt index fde2eaacf23..004737d934b 100644 --- a/source/reference/aggregation/group.txt +++ b/source/reference/aggregation/group.txt @@ -20,7 +20,7 @@ $group (aggregation) .. code-block:: javascript - { _id : { author: 1, pageViews: 1, posted: 1 } } + { _id : { author: $author$, pageViews: $pageViews$, posted: $posted$ } } With the exception of the ``_id`` field, :pipeline:`$group` cannot output nested documents.