How to do selectionset based batching? #3149
-
Hello, I have types in GraphQL with 2 sorts of fields, fast and slow fields. I'd like to implement batching for my types, but only if the incoming query's selectionset contains slow fields. If the selectionset contains only fast fields, I'd like to use a resolver. How would one implement this with GraphQL Java? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
See https://www.graphql-java.com/documentation/field-selection and https://www.graphql-java.com/blog/deep-dive-data-fetcher-results I am not sure exactly what you mean by "batching versus resolver" but you can change the way data is fetched by using the selection set |
Beta Was this translation helpful? Give feedback.
See https://www.graphql-java.com/documentation/field-selection
and
https://www.graphql-java.com/blog/deep-dive-data-fetcher-results
I am not sure exactly what you mean by "batching versus resolver" but you can change the way data is fetched by using the selection set