Support a distinct_on filter #4848
Replies: 5 comments 1 reply
-
P.S. Very happy to do offer development hours to help get this done, but I will need some direction. Through my initial poking around, I feel like it may make the most sense to either add the functionality to the |
Beta Was this translation helpful? Give feedback.
-
Hi @kkliebersbach To investigate such a feature we usually do a comparison with already existing libraries. Prisma, Hasura, GraphCMS, Craft, Gatsby etc. Something like this: We then decide on which direction we take, write down the SDL and implement the feature. So its
|
Beta Was this translation helpful? Give feedback.
-
hello! |
Beta Was this translation helpful? Give feedback.
-
We are using and loving Hot Chocolate in our org, and having the ability to distinct results directly in the query would save us a lot of dev time adding additional resolvers for distinct queries or otherwise working around it. Has this discussion progressed internally at all? If there is a clear way forward identified but no resource to tackle it, we could try and give implementing it a go? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
The problem is we there is no way to fetch data on distinct keys or nested entity properties.
Describe the solution you'd like
I'd like an implementation of
distinct_on
which allows for nested distinct queries. SeeQueryable.Distinct
documentation.Describe alternatives you've considered
There are no alternatives. I do know that Hasura supports this filter.
Beta Was this translation helpful? Give feedback.
All reactions