Hi Tony,
Thanks for the reply. Group returns an array of grouped items, one
element of the array per grouping key. In order to accumulate the
information across dates (for example) I would need to use city as the
grouping key. Is the idea to return an array with the values for each
of the months as the element in the array returned in group for a
given city? In other words, the result from group would be something
like this:
[{city : 1, [{date:201001, count : 10, csum : 10}, {date:201002,
count : 20, csum : 30}],
{city : 2, [{date:201001, count : 5, csum : 5}, {date:201002,
count : 40, csum : 45}]
]
Regards,
-Marcos
On Oct 13, 6:30 pm, Tony Hannan <
t...@10gen.com> wrote:
> Seehttp://
www.mongodb.org/display/DOCS/Aggregation#Aggregation-Group
> >
mongodb-user...@googlegroups.com<
mongodb-user%2Bunsu...@googlegroups.com>
> > .