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

GraphQLError extension to add error code #72

Open
itayAmza opened this issue Dec 25, 2021 · 0 comments
Open

GraphQLError extension to add error code #72

itayAmza opened this issue Dec 25, 2021 · 0 comments
Labels

Comments

@itayAmza
Copy link

Question,
I'm looking for an easier way of parsing and handling errors on client.
I want to add an extension to the GraphQLError, So I can add an error code property.
Do you think it's possible?
I'm using Vapor so adding error headers to AbortError might also be an option, although I think extension would be much cleaner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants