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

feat: Add option to allow throwing #586

Open
exoRift opened this issue Jun 28, 2023 · 2 comments
Open

feat: Add option to allow throwing #586

exoRift opened this issue Jun 28, 2023 · 2 comments

Comments

@exoRift
Copy link

exoRift commented Jun 28, 2023

Add an option to allow fetches to throw on an error rather than resolving with an error object

@meabed
Copy link
Owner

meabed commented Jul 11, 2023

Good idea - could also achieve this with custom fetcher.

@exoRift
Copy link
Author

exoRift commented Jul 12, 2023

@meabed I tried doing it in a custom fetcher, but GQLTS catches the error and resolves the promise with the error in the errors field.

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

No branches or pull requests

2 participants