apollographql / federation-jvm

JVM support for Apollo Federation
https://www.apollographql.com/docs/federation/
MIT License
241 stars 65 forks source link

Global Object Identification Specification - resolving Node interface #81

Open saddis-r7 opened 3 years ago

saddis-r7 commented 3 years ago

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?

sachindshinde commented 3 years ago

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

setchy commented 3 years ago

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)