[GraphQL error]: Method "collection.aggregate()" accepts at most two arguments

After updating Meteor version from 2.2 to 2.7.2, I am facing such an error when the application loads.

[GraphQL error]: Method "collection.aggregate()" accepts at most two arguments

The app uses aldeed:collection2 and Apollo Graphql.
All meteor and npm packages are up to date.

The query that is referenced in the screenshot doesn’t have any aggregation methods, so I assume the error comes from some package.

Could anyone suggest where to start looking for it?

Error screenshot

Hi @jurjus, did you do the upgrade correctly? There are some breaking changes from 2.2 to 2.7.2, especially related to MongoDB
https://docs.meteor.com/changelog.html

@hschmaiske I assume I didn’t. Let me see what I missed :smile: