mongo aggregate result exceed maximum document size
how come aggregate function don't have this capability?
It does in 2.6 which will be out very soon.
i also tried to append limit() to the end of the aggregate function, it won't work either. any work around?
There is a $limit
operator for the aggregation framework: http://docs.mongodb.org/manual/reference/operator/aggregation/limit/