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

Place extra errors in extensions field #1215

Conversation

maartenvanvliet
Copy link
Contributor

As per the spec (https://spec.graphql.org/October2021/#sec-Errors.Error-result-format) any extra errors are now placed in the extensions field.

This only happens when the spec_compliant_errors opt is set to true. As this is a breaking change and some clients may relay on the current behaviour it is opt in. With Absinthe 2.0 we can switch this around and make the spec compliant behaviour opt-out and the legacy behaviour opt-in.

Fixes #925

Copy link
Contributor

@benwilson512 benwilson512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition, thanks!

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.

Error "extensions" handling doesn't match spec
2 participants