I have an aggregation like this:
var cursor = self.model('BwLog').aggregate([ ... ]).cursor({ batchSize: 50 }).exec();
cursor.eachAsync(function(doc) {
do something...
})
I'm using Mongoose 4.5.3 and I'm getting an error:
cursor.eachAsync is not a function
The cursor from the aggregations is different from the query cursors? Do you plan to support this async method?
Regards,
Yeah right now aggregation cursors are completely separate. This would be a great feature to have though, thanks for the suggestion
Most helpful comment
Yeah right now aggregation cursors are completely separate. This would be a great feature to have though, thanks for the suggestion