Meteor only supports a few methods for mongo collections, such as find, findOne, insert, update, upsert, remove, allow, deny My question is: how do I execute all the others? I want to use a server-side aggregate, for example:
db.eshops.aggregate([ { $unwind: '$unpairedCategories' }, { $group: { _id: '$_id', 'sum': { $sum: 1 } } }, { $group: { _id: null, total_sum: { '$sum': '$sum' } } } ]);
Should I include the mongodb driver for nodejs separately from the meteor? Or what is the meteor method to launch all other mango collection methods?
source share