Skip to content

Modify response before returning? #524

Answered by oojacoboo
michilehr asked this question in Q&A
Discussion options

You must be logged in to vote

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
        }
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michilehr
Comment options

Answer selected by michilehr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #523 on November 09, 2022 18:52.