Skip to content

Commit 782a22e

Browse files
committed
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
1 parent 6738b5a commit 782a22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/applications/aggregation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ command:
143143
} },
144144
{ $unwind : “$tags” },
145145
{ $group : {
146-
_id : { tags : 1 },
146+
_id : { tags : "$tags" },
147147
authors : { $addToSet : “$author” }
148148
} }
149149
);

0 commit comments

Comments
 (0)