Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reverse order of errors vs data in response #264

Merged
merged 2 commits into from
Oct 2, 2018

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!

graphql.go Show resolved Hide resolved
@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