Skip to content

[1.7.0.1] Meteor.wrapAsync no longer works, returning a cursor instead of ajax results #9936

@WayneUong

Description

@WayneUong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions