You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/graphql/directives.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ export class UpperCaseDirective extends SchemaDirectiveVisitor {
31
31
```
32
32
33
33
> info **Hint** Note that directives cannot be decorated with the `@Injectable()` decorator. Thus, they are not able to inject dependencies.
34
-
>
35
-
> warning **Warning**`SchemaDirectiveVisitor` is exported from the `@graphql-tools/utils` package. Note that the 8.x release of this package removes this export
34
+
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
36
> and uses a different and incompatible approach to directives, so make sure to install `@graphql-tools/utils@^7` in your project.
37
37
38
38
Now, register the `UpperCaseDirective` in the `GraphQLModule.forRoot()` method:
0 commit comments