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

Querying an association that consists of an inheritance hierarchy fails due to Hibernate Proxies #60

Open
jamesdh opened this issue Dec 23, 2020 · 0 comments

Comments

@jamesdh
Copy link
Contributor

jamesdh commented Dec 23, 2020

This easily happens when the inheritance hierarchy in question is an association on a parent domain model that is being queried. If the object is not already in Hibernates cache, it generates a proxy for it when being retrieved, but then GraphQL is unable to adequately determine its type when fulfilling the query.

Adding this mostly as a placeholder/reminder to submit a PR that clarifies this gotcha in the docs.

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

No branches or pull requests

1 participant