From: Stephen Steneker <stephen.stene...@10gen.com>
Date: Mon, 17 Sep 2012 21:48:14 -0700 (PDT)
Local: Tues, Sep 18 2012 12:48 am
Subject: Re: Support use Group to sum array of object.
> My collections which have key is a array object. You could use the Aggregation Framework in MongoDB 2.2 to sum the data by db.Orders.aggregate( There are a few limitations to be aware of, in particular that the output You may also want to start your aggregation with an indexed $match to limit > Have Mongodb support sum/avg key in array of Object by use Aggregation Group/Map Reduce yet? The new aggregation framework includes a number of mathematical functions Cheers, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||