Skip to content

Commit 73e99e0

Browse files
Update content/graphql/field-middleware.md
1 parent d0b694e commit 73e99e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/field-middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Now whenever we request the `title` field of `Recipe` object type, the original
4343

4444
> info **Hint** To learn how you can implement a field-level permissions system with the use of [extensions](/graphql/extensions) feature, check out this [section](/graphql/extensions#using-custom-metadata).
4545
46-
> warning **Warning** Field middleware can be applied ObjectType only. For more details, check out this [issue](https://github.com/nestjs/graphql/issues/2446).
46+
> warning **Warning** Field middleware can be applied only to `ObjectType` classes. For more details, check out this [issue](https://github.com/nestjs/graphql/issues/2446).
4747
4848
Also, as mentioned above, we can control the field's value from within the middleware function. For demonstration purposes, let's capitalise a recipe's title (if present):
4949

0 commit comments

Comments
 (0)