balderdashy / waterline-sequel

A SQL generator for use in Waterline Adapters
MIT License
16 stars 61 forks source link

count aggregate for groupBy #96

Closed mill0234 closed 8 years ago

mill0234 commented 8 years ago

Hi, I'm new to sails/waterline and noticed there is no 'count' aggregate for 'groupBy' statements. I also tried to do a 'sum(1)' but that did not work as well. Short of adding a column of 1s to the database and performing a sum on that column, any other suggestions? Thanks, Ryan

sailsbot commented 8 years ago

@mill0234 Thanks for posting, we'll take a look as soon as possible. In the meantime, if you haven’t already, please carefully read the issue contribution guidelines and double-check for any missing information above. In particular, please ensure that this issue is about a stability or performance bug with a documented feature; and make sure you’ve included detailed instructions on how to reproduce the bug from a clean install. Finally, don’t forget to include the version of Node.js you tested with, as well as your version of Sails or Waterline, and of any relevant standalone adapters/generators/hooks.

Thank you!

sailsbot commented 8 years ago

@mill0234,@sailsbot: Hello, I'm a repo bot-- nice to meet you!

It has been 30 days since there have been any updates or new comments on this page. If this issue has been resolved, feel free to disregard the rest of this message and simply close the issue if possible. On the other hand, if you are still waiting on a patch, please post a comment to keep the thread alive (with any new information you can provide).

If no further activity occurs on this thread within the next 3 days, the issue will automatically be closed.

Thanks so much for your help!