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

Handle FragmentSpread selections nested inside InlineFragment nodes #213

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

sgarner
Copy link
Contributor

@sgarner sgarner commented Apr 15, 2021

This fixes an issue where selections represented by a named fragment (written like ...FragmentName) that were nested within an inline fragment (e.g. a union or interface type, written like ... on Image { ... }) could not be traversed correctly.

This didn't work because RelationMapper.findFieldInSelection() tried to get the selection set directly from the node, but in this scenario the selection set has to be cross referenced back to the named fragment.

@sgarner sgarner merged commit d04b05a into master Apr 15, 2021
@sgarner sgarner deleted the nested-fragments branch April 15, 2021 02:15
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.

1 participant