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

Fix IntrospectionFragmentMatcher handling of fragment on root query #4620

Merged
merged 3 commits into from
Apr 8, 2019

Conversation

rynobax
Copy link
Contributor

@rynobax rynobax commented Mar 24, 2019

I came across a bug where IntrospectionFragmentMatcher will break when using a fragment on the root query (example here). #3402 suggested applying #3484's fix for the heuristic matcher to the fragment matcher. It seems to have worked.

@ellioseven
Copy link

@rynobax I have run into the same issue. Any temporary work arounds for the moment?

@rynobax
Copy link
Contributor Author

rynobax commented Mar 26, 2019

@ellioseven Unfortunately, my workaround has been to not use fragments on the root query 😄

@ellioseven
Copy link

ellioseven commented Mar 26, 2019

Dang. Me too :( A little polite nudge to @abhiaiyer91 to see if he can take a quick look at this, following from #3402. Would be a life saver to get this merged.

Copy link
Member

@benjamn benjamn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we do this already for the HeuristicFragmentMatcher, I agree it makes sense to do it also for IntrospectionFragmentMatcher. Thanks for including a test @rynobax!

@benjamn benjamn merged commit 2469e3f into apollographql:master Apr 8, 2019
@bessey
Copy link

bessey commented May 16, 2019

We have some solid use cases for this at my company, and this is blocking us upgrading. Is there any chance of someone cutting a new release? I can't work out how to fetch from a git subdirectory through package.json :(

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants