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(gatsby): Use concrete type resolver on interface fields #17284

Merged

Conversation

stefanprobst
Copy link
Contributor

@stefanprobst stefanprobst commented Aug 31, 2019

Continued from #16679

When filtering on interface fields, we currently use the resolver on the interface type. This PR changes this to use the resolver on the type returned from the interface's resolveType, which is in line with what graphql does when resolving the fields in the selection set.

Related: #12272 (comment)
Fixes: #16890

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks Stefan! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: GraphQL Related to Gatsby's GraphQL layer
3 participants