It seems the aggregate
method on models is not thenable, is this intentional or an accidental omission?
Intentional. Use the .exec() function. We'll add a .then() that does this for you in a future release
Ok that'd be great. I use the promises interface for all other Mongoose operations, so would be good if it can be consistent with aggregate as well. Thanks!
+1
Most helpful comment
Intentional. Use the .exec() function. We'll add a .then() that does this for you in a future release