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 resolvers when filtering on node interface fields #16679

Conversation

stefanprobst
Copy link
Contributor

@stefanprobst stefanprobst commented Aug 16, 2019

When filtering on @nodeInterface 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

Note: I tried to change as little as possible in prepare-nodes which will be replaced by @freiksenet's work in the materialization branch anyway.

@freiksenet
Copy link
Contributor

This will cause quite a conflict with what I'm doing with materialization. I can try porting that so it's based on that.

@stefanprobst
Copy link
Contributor Author

Superseded by #17284

@stefanprobst stefanprobst deleted the use-conrete-type-resolvers-for-nodeinterface branch August 31, 2019 18:42
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field with resolve (using custom Node interface) doesn't appear in filtering
3 participants