0

I am trying to resolve an interface by ID with netflix-dgs and Apollo federation. But the DgsEntityFetcher does not seem to be registered for interfaces. I also tried declaring entity resolvers for types B and C and still null result.

Here is a sample:

interface A @key(fields:"id"){
  id: ID!
  ...
}
type B implements A {...}
type C implements A {...}
//This type can appear in multiple services/subgraphs
type SomeObject @key(fields:"id"){
      id: ID!
      aTypeField: A @provides(fields: "id")
}

0 Answers0