federation-jvm
federation-jvm copied to clipboard
Global Object Identification Specification - resolving Node interface
My implementing service is failing to resolve the Node interface and every concrete type that implements Node. How can I resolve this type without a class implementation?
@saddis-r7
It sounds like you have a GraphQL interface type Node and some GraphQL object types that implement Node. To resolve this type, you'll need to provide a graphql-java TypeResolver when constructing the schema. See this section in the graphql-java docs for an example.
I'm using graphql-java-kickstart and from memory to support federation over my relay connection types I had to explicitly define the types in the schema SDL (which otherwise is not required for non federated services)