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

post-process errors received from responses into GraphQLError instances #11789

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phryneas
Copy link
Member

Fixes #11787

This would be one direction of going at this.

The other way of going about it would be to change our usage of the GraphQLError type to the GraphQLErrorFromResponse type that I created here, with everything except message being optional.

We'll have to discuss that internally - putting it on the agenda for next meeting.

Copy link

changeset-bot bot commented Apr 17, 2024

🦋 Changeset detected

Latest commit: c21ba48

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@phryneas
Copy link
Member Author

Funny enough, nothing here fails for me locally. I'll have to take a closer look.

@phryneas phryneas marked this pull request as draft April 17, 2024 14:00
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.

ApolloError.graphQLErrors are not of type GraphQLError
1 participant