From 782a22ec6f7820c2246a2951ceaeaab5ebcb4beb Mon Sep 17 00:00:00 2001 From: "David M. Carr" Date: Fri, 24 Aug 2012 23:17:14 -0300 Subject: [PATCH] Update source/applications/aggregation.txt Update the $group usage in the example to use the updated syntax, as per the group posting below. https://groups.google.com/d/topic/mongodb-user/1cYch580h0w/discussion --- source/applications/aggregation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/applications/aggregation.txt b/source/applications/aggregation.txt index cc8320d47ab..04cff713ae1 100644 --- a/source/applications/aggregation.txt +++ b/source/applications/aggregation.txt @@ -143,7 +143,7 @@ command: } }, { $unwind : “$tags” }, { $group : { - _id : { tags : 1 }, + _id : { tags : "$tags" }, authors : { $addToSet : “$author” } } } );