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

Question: How is errors handled? #39

Open
tybro0103 opened this issue May 19, 2017 · 2 comments
Open

Question: How is errors handled? #39

tybro0103 opened this issue May 19, 2017 · 2 comments

Comments

@tybro0103
Copy link

Don't see this mentioned anywhere...

If the graphql response contains errors, will it the client.query() promise reject? Or do I need to check for it on result within then?

@justinhandley
Copy link

I'm also curious about this one - I have been finding that if I give bad data in a query, I don't get any response at all. I've tried all sorts of try / catch and .then.catch scenarios and can't seem to get any response. I have to go through and manually remove one field at a time from my query until I figure out which one is causing the issue.

@cjoelrun
Copy link

cjoelrun commented Apr 11, 2018

I think it depends on the transport you use. https://github.com/kadirahq/lokka-transport-http#error-handling. That transport lib also hasn't been touched in 2 yrs :/

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

3 participants