-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add group_by action method #28
Comments
any updates? |
@HKGx Not yet, although this is not a difficult change. I'll work on it now. |
@HKGx Do you need to also query by I forgot about these aggregation fields before mentioning that this is not a difficult change. Adding support for querying by these fields is more difficult due to internal features that I haven't implemented yet. If you don't need these, I can prioritise getting an initial proof of concept implemented which you would be able to use until the next release. |
@RobertCraigie I'd say so as I'm currently doing SELECT field, COUNT(field) FROM table GROUP BY field Not sure how it applies to Prisma, though. |
@HKGx I've added the initial support for this feature. You can try it out by installing from the
It should be noted that the This is also very much a work in progress, please let me know if you encounter any issues. |
https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#groupby
The design decision we need to make here is how to represent the data that prisms returns.
The text was updated successfully, but these errors were encountered: