Skip to content

Conversation

@gracenoah
Copy link
Contributor

In this PR I moved the errors field before the data field in the response object based on the recommendation of the graphql standard merged in this pr: graphql/graphql-spec#384

Note: When errors is present in the response, it may be helpful for it to
appear first when serialized to make it more clear when errors are present
in a response during debugging.

@pavelnikolov
Copy link
Member

Thanks for the contribution!

@pavelnikolov pavelnikolov merged commit 25d6d94 into graph-gophers:master Oct 2, 2018
tinnywang pushed a commit to tinnywang/graphql-go that referenced this pull request Dec 13, 2018
reverse order of errors vs data in response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants