node-orm2
node-orm2 copied to clipboard
Issue with `count` and `distinct`
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.