node-orm2 icon indicating copy to clipboard operation
node-orm2 copied to clipboard

Issue with `count` and `distinct`

Open louy opened this issue 10 years ago • 0 comments

Hello,

I'm having a weird issue. Here's an example:

Person.aggregate().distinct(`country`).count().get(function(err, count) {});

The resulting count is actually the first value of the field country. Without count it works as expected.

louy avatar Sep 03 '15 05:09 louy