Skip to content

Commit 9aab6d5

Browse files
committed
docs(graphql): simplify further
1 parent f29e00b commit 9aab6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/guards-interceptors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async upvotePost(
8686

8787
> info **Hint** In the above example, we have assumed that the `user` object is assigned to the context of your GraphQL application.
8888
89-
#### Execute enhancers at the field/method level
89+
#### Execute enhancers at the field resolver level
9090

9191
In the GraphQL context, Nest does not run **enhancers** (the generic name for interceptors, guards and filters) at the field level [see this issue](https://github.com/nestjs/graphql/issues/320#issuecomment-511193229): they only run for the top level `@Query()`/`@Mutation()` method. You can tell Nest to execute interceptors, guards or filters for methods annotated with `@ResolveField()` by setting the `fieldResolverEnhancers` option in `GqlModuleOptions`. Pass it a list of `'interceptors'`, `'guards'`, and/or `'filters'` as appropriate:
9292

0 commit comments

Comments
 (0)