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(core): Allow permissive passthrough for CombinedError.graphQLErrors #3087

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 20, 2023

Summary

I was reminded me of having multiple copies of graphql, or a future where some graphql imports are aliased to @0no-co/graphql.web or graphql-web-lite, but not all.

Our CombinedError now passes through GraphQLErrors but it isn't yet permissive enough to allow for any object that vaguely adheres to the GraphQLError shape to be passed through.

Set of changes

  • Allow for any object that adheres to the GraphQLError shape to be passed through to CombinedError.graphQLErrors

@kitten kitten requested a review from JoviDeCroock March 20, 2023 11:43
@kitten kitten merged commit c417be2 into main Mar 20, 2023
@kitten kitten deleted the fix/combined-error-flexibility branch March 20, 2023 11:47
@github-actions github-actions bot mentioned this pull request Mar 20, 2023
@github-actions github-actions bot mentioned this pull request Mar 27, 2023
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.

2 participants