Skip to content

Commit 11ce816

Browse files
Update content/graphql/directives.md
1 parent ea27b6f commit 11ce816

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/graphql/directives.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export class UpperCaseDirective extends SchemaDirectiveVisitor {
3232

3333
> info **Hint** Note that directives cannot be decorated with the `@Injectable()` decorator. Thus, they are not able to inject dependencies.
3434
35-
> warning **Warning** `SchemaDirectiveVisitor` is exported from the `@graphql-tools/utils` package. Note that the 8.x release of graphql-tools removes this export
36-
> and uses a different and incompatible approach to directives, so make sure to install `@graphql-tools/utils@^7` in your project.
35+
> warning **Warning** `SchemaDirectiveVisitor` is exported from the `@graphql-tools/utils` package. Note that the 8.x release of `graphql-tools` removes this export and provides a different and incompatible approach to directives, so make sure to install `@graphql-tools/utils@^7` in your project.
3736
3837
Now, register the `UpperCaseDirective` in the `GraphQLModule.forRoot()` method:
3938

0 commit comments

Comments
 (0)