-
Hi, is it possible to modify a response before sending? Given I have a Configuration with a name that differs from language to language (de and en).
Now I want to query for the name...
... and the response should look like this:
Would this even be valid by the GraphQL specification? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
oojacoboo
Nov 9, 2022
Replies: 1 comment 1 reply
-
Hey Michi - of course. It might help to use an extended output type. Checkout this doc: https://graphqlite.thecodingmachine.io/docs/3.0/extend_type On your output, the structure of the JSON should really follow your GQL. So... query {
configurations {
lang {
name
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
michilehr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Michi - of course. It might help to use an extended output type. Checkout this doc:
https://graphqlite.thecodingmachine.io/docs/3.0/extend_type
On your output, the structure of the JSON should really follow your GQL. So...