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

Returning deeply extended type from inteface query #373

Open
MichalLytek opened this issue Jul 8, 2019 · 0 comments
Open

Returning deeply extended type from inteface query #373

MichalLytek opened this issue Jul 8, 2019 · 0 comments
Assignees
Labels
Bug 🐛 Something isn't working
Milestone

Comments

@MichalLytek
Copy link
Owner

MichalLytek commented Jul 8, 2019

#279 added support for returning plain object from queries which returns type is an interface but it introduced a regression that makes interfaces-inheritance example not working correctly.

The implementingObjectTypesTargets looks for classes that implements selected interface but because of current pipeline limitation (#183) it doesn't have access to parent and its parent classes metadata, so when using deeply nested inheritance, it might return the first (base) class always.

The workaround for now is to use custom resolveType functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant