balderdashy/sails-mongo — pull request #8 by d4mn (2013-03-27 10:20:25+00:00)
Title: New aggregate method

Added aggregate method to use Aggregate functions in modules
Usage: Model.aggregate([{$group:{field1:"$email",totalEmails:{$sum:1}}}],function(err,docs){});
More info on Aggregate functions: http://mongodb.github.com/node-mongodb-native/api-generated/collection.html#aggregate