Przeglądaj źródła

feat(core): Enable inherit resolvers from interfaces (#2800)

Pieter Doms 1 rok temu
rodzic
commit
1069b3b38e

+ 1 - 0
packages/core/src/api/config/configure-graphql-module.ts

@@ -100,6 +100,7 @@ async function createGraphQLOptions(
         path: '/' + options.apiPath,
         typeDefs: printSchema(builtSchema),
         include: [options.resolverModule],
+        inheritResolversFromInterfaces: true,
         fieldResolverEnhancers: ['guards'],
         resolvers,
         // We no longer rely on the upload facility bundled with Apollo Server, and instead