grapher/lib/aggregate.js
2017-11-26 23:42:27 +02:00

5 lines
184 B
JavaScript

Mongo.Collection.prototype.aggregate = function(pipelines, options) {
const coll = this.rawCollection();
return Meteor.wrapAsync(coll.aggregate, coll)(pipelines, options);
};