federation-jvm icon indicating copy to clipboard operation
federation-jvm copied to clipboard

Global Object Identification Specification - resolving Node interface

Open saddis-r7 opened this issue 5 years ago • 2 comments

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 avatar Oct 12 '20 15:10 saddis-r7

@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.

sachindshinde avatar Oct 20 '20 23:10 sachindshinde

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)

setchy avatar Jan 19 '21 10:01 setchy