Skip to content

Conversation

Routee
Copy link

@Routee Routee commented Aug 30, 2023

@knaeckeKami
Copy link
Collaborator

Hi!

Thanks for you PR.

The GraphQL spec actually required every error to have a String message, see

https://spec.graphql.org/October2021/#sec-Errors.Error-result-format

So I think throwing an Exception is the right behaviour, even though the Exception could be more descriptive I admit.

If you want non-standard behavior like this, you can pass your own ResponseParser to your HttpLink/DioLink.

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