Sam is correct. In your example with only one document there isn't
anything to reduce. If you try your example in the mongo shell you
will get the same result. If you need to do any kind of post-
processing use the finalize parameter.
On Jul 2, 4:00 pm, Sam Millman <
sam.mill...@gmail.com> wrote:
> Reduce will not run on a single document.
>
> I am not sure why you need reduce to run on a single document since it just
> designed to combine emitted data really...you finalize function does
> post-processing stuff.
>