Support for inheritResolversFromInterfaces/allowUndefinedInResolve in federation?

I’m migrating an existing Apollo graphql server to a federated subgraph. Previously I would build the schema like so:

const schema = makeExecutableSchema({
    typeDefs,
    resolvers,
    allowUndefinedInResolve: true,
    schemaDirectives,
    inheritResolversFromInterfaces: true
  });

Now I’m calling buildSubgraphSchema instead, but it doesn’t seem to be expecting either of the allowUndefinedInResolve or inheritResolversFromInterfaces options. Consequently my existing “interface resolvers” don’t seem to be firing.

Is this an known limitation of buildSubgraphSchema, and if so will it be addressed in future versions? Or is there some other way to ensure my interface resolvers can be called?

1 Like