From 6069582bbe3cd49a5f200dcbb71050734fd2c53a Mon Sep 17 00:00:00 2001 From: Marc Schipperheyn Date: Fri, 20 Dec 2024 15:50:14 -0300 Subject: [PATCH] feat(graphql): Allow interceptors on field resolvers --- packages/core/src/api/config/configure-graphql-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/api/config/configure-graphql-module.ts b/packages/core/src/api/config/configure-graphql-module.ts index 2959b72637..f95efad37c 100644 --- a/packages/core/src/api/config/configure-graphql-module.ts +++ b/packages/core/src/api/config/configure-graphql-module.ts @@ -120,7 +120,7 @@ async function createGraphQLOptions( typeDefs: printSchema(builtSchema), include: [options.resolverModule], inheritResolversFromInterfaces: true, - fieldResolverEnhancers: ['guards'], + fieldResolverEnhancers: ['guards', 'interceptors'], resolvers, // We no longer rely on the upload facility bundled with Apollo Server, and instead // manually configure the graphql-upload package. See https://github.com/vendure-ecommerce/vendure/issues/396