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

fix(graphql): respect GraphQL working draft changes to errors #923

Merged
merged 4 commits into from
Nov 23, 2018
Merged

Conversation

benjie
Copy link
Member

@benjie benjie commented Nov 23, 2018

Updates PostGraphile to respect the latest GraphQL spec, using the exceptions property on errors:

https://facebook.github.io/graphql/draft/#sec-Errors

Note: we've kept all the old properties for backwards compatibility but these will be removed in version 5 so we strongly recommend you switch to using the new error.extensions.exception object rather than using error directly.

Fixes #896

@benjie benjie merged commit 442d2b7 into master Nov 23, 2018
@benjie benjie deleted the errors branch November 23, 2018 11:54
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.

1 participant