Aggregation in Meteor 1.7.1

I’ve just updated to Meteor 1.7.1 and all my aggregations in my project are failing, instead of returning an array it is returning a cursor. I was using meteorhacks:aggregate , it now works with sakulstra:aggregate so If you are having the same problem as me , migrate

3 Likes

Thanks for pointing that out @ozcoro . We recently moved to 1.7 but never checked the reports section was working, which is I’ve just seen has been broken by this change too :persevere:

Take a look at this issue on Github:

This may be a fix for you. Adding .toArray() at the end.

2 Likes