You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Meteor.wrapAsync to access the collection aggregation up until meteor 1.6. But after upgrading to 1.7.0.1, the returned result is now a AggregationCursor and no longer a aggregation result.
let rawDonations = Donations.rawCollection();
let rawAggregate = Meteor.wrapAsync(rawDonations.aggregate, rawDonations);
let res = rawAggregate(pipeline);
res => AggregationCursor