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

Query based on id return null for Interface #16021

Closed
alexluong opened this issue Jul 23, 2019 · 4 comments · Fixed by #16114
Closed

Query based on id return null for Interface #16021

alexluong opened this issue Jul 23, 2019 · 4 comments · Fixed by #16114

Comments

@alexluong
Copy link
Contributor

Description

When using Interface, query based on id will return null

kC8k8DVj jpg large

Steps to reproduce

Code based on @ChristopherBiscardi 's gatsby-data-experiments

@stefanprobst
Copy link
Contributor

Could you provide a repo to quickly reproduce this? Thanks!!

@stefanprobst
Copy link
Contributor

stefanprobst commented Jul 28, 2019

Quick question: why did you manually add the parent field to the interface? -- it should be available via ... on Node { parent } because all @nodeInterface implementers also implement the Node interface.
EDIT: We could add all Node interface fields to @nodeInterface interfaces.

@ChristopherBiscardi
Copy link
Contributor

@stefanprobst There's no real reason. I talked about this with @freiksenet and he had the same comment. I should remove it.

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 a pull request may close this issue.

3 participants