For anyone struggling with grouping, aggregation, ...
# prisma-whats-new
a
For anyone struggling with grouping, aggregation, etc., I found this client-side library that adds the majority of lodash functions to your queries. Transformations are applied client-side, so it will only get you so far, but at least you can define your queries without any additional steps: https://github.com/APIs-guru/graphql-lodash
👍 2
🎉 1
d
Interesting. So basically it's a pre and post processor for graphql requests that uses custom directives. I imagine that pattern could be used for other things as well.
👍🏻 1
a
Yes, I never even thought about it like that before, but it opens up a whole new world of possibilities
d
I can imagine a simple framework based on this idea that enables client side directives to be added as modules.
👍🏻 1