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

Match latest spec and return single error #816

Merged
merged 3 commits into from
Dec 7, 2019

Conversation

binaryseed
Copy link
Contributor

@binaryseed binaryseed commented Dec 5, 2019

The latest GraphQL spec states we should not add an additional error when a resolver returns an explicit error.

https://graphql.github.io/graphql-spec/June2018/#sec-Errors-and-Non-Nullability

closes #803
@benwilson512

@binaryseed
Copy link
Contributor Author

@benwilson512 quick review on this would be nice too...

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.

Looks great!

@binaryseed binaryseed merged commit d84f6c7 into absinthe-graphql:master Dec 7, 2019
@binaryseed binaryseed deleted the single-error branch December 7, 2019 23:14
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.

"Cannot return null for non-nullable field" present when error was specified
2 participants