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

do not nullify the entire query if the root operation is not present #1674

Merged
merged 3 commits into from
Sep 1, 2022

Conversation

Geal
Copy link
Contributor

@Geal Geal commented Sep 1, 2022

if the root operation was not returned by the subgraph (example: when
there's an error), we should not nullify the entire data objet. Instead,
it's the root operation field that should be null (unless it is not
nullable)

Fixed #1670

if the root operation was not returned by the subgraph (example: when
there's an error), we should not nullify the entire data objet. Instead,
it's the root operation field that should be null (unless it is not
nullable)
@github-actions

This comment has been minimized.

@abernix abernix added this to the v1.0.0-alpha.1 milestone Sep 1, 2022
Co-authored-by: Martin Bonnin <martin@mbonnin.net>
@Geal Geal enabled auto-merge (squash) September 1, 2022 11:16
@Geal Geal merged commit 6b83a74 into main Sep 1, 2022
@Geal Geal deleted the query-nullification branch September 1, 2022 11:38
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.

Router / Gateway: different data returned on subgraph errors
4 participants