balderdashy / waterline-docs

WARNING: The content in this repo is out of date! See https://github.com/balderdashy/sails-docs for the most up-to-date documentation
452 stars 163 forks source link

Document groupBy #79

Open dmarcelino opened 9 years ago

dmarcelino commented 9 years ago

groupBy is missing documentation. Several code examples exist in: https://github.com/balderdashy/waterline-adapter-tests/blob/master/interfaces/queryable/modifiers/groupBy.modifier.test.js which could be used as base for the docs.

frandiox commented 9 years ago

@dmarcelino Hello! Thank you very much for this early docs. Do you know if it is possible to combine groupBy and count in this way? I am doing a populate() and need both of them. It works great with sum and the others, but not with count :/

My current workaround is to sum a specific extra field which always has value '1'. It works as count but feels a bit dirty ^^'

Thanks!

dmarcelino commented 9 years ago

I'm not sure to be honest.

My current workaround is to sum a specific extra field which always has value '1'. It works as count but feels a bit dirty ^^'

clever :wink:

vunb commented 7 years ago

I also want to know how to combine groupBy with count. Currently it did not support 😢