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

Nested Queries don't partly resolve on error #208

Open
thilorichter-optimizely opened this issue May 2, 2019 · 1 comment
Open

Nested Queries don't partly resolve on error #208

thilorichter-optimizely opened this issue May 2, 2019 · 1 comment

Comments

@thilorichter-optimizely
Copy link

This might be more of a feature request, but I noticed that when nesting queries or writing queries that will result in multiple queries, if one fails, the entire operation errors and there is no way to retrieve the data, that was returned from the API successfully.

An example would be retrieving user information from the API and then querying for all comments that user has posted. That can be written in 1 graphQL query but will result in multiple REST API calls. If one of them fails, the whole query fails without being able to retrieve at least part of the data.

I played around with the error handlers, but didn't get around the issue. What I would like is the data to be returned with an object that includes error information about all calls that failed.

Someone has an idea how to make that possible?

@fbartho
Copy link
Collaborator

fbartho commented May 2, 2019

I’d love for a PR to do that, but off the top of my head I’m not sure how to do it!

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

No branches or pull requests

2 participants