dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

groupBy is not working with findAsync #835

Closed stardev24 closed 5 years ago

stardev24 commented 5 years ago

Hi,

As per the documentation Filtering and sorting section I have tried Person.findAsync({status:'active',form:'success'}, {groupBy:'permission'}) .then(function(results) { console.log(results); }); But its not at all considering groupBy.I am using postgresql as my database.

dxg commented 5 years ago

I think the example was incorrect. I don't think such a feature is supported. Actually the Promise documentation was a mess - it was duplicating all other documentation.

I've cleaned it up: https://github.com/dresende/node-orm2#promise-support