Skip to content

Conversation

@visualage
Copy link
Contributor

This is an attempt to solve #139.

The idea here is, user can register a parent class or an interface in the GraphQL. When the union looks up the corresponding GraphQL type, it would try to resolve the type by the instance type, and then walk up the class hierarchy. If still cannot find any mapped GraphQL type, it would try to look at all implemented interfaces and their mapped GraphQL type.

This would allow mapping abstract class or interface to GraphQL types, and returning actual concrete classes in the union.
@apottere apottere merged commit ca6eee9 into graphql-java-kickstart:master May 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants