Skip to content

Commit

Permalink
feat(graphql): Allow interceptors on field resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
mschipperheyn committed Dec 20, 2024
1 parent 8c6e48e commit 6069582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/config/configure-graphql-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6069582

Please sign in to comment.