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: docs/directives.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Basically, we declare the usage of directives just like in SDL, with the `@` syn
32
32
@Directive('@deprecated(reason: "Use newField")')
33
33
```
34
34
35
-
Currently, you can use the directives only on object types, input typesand their fields or fields resolvers, as well as queries, mutations and subscriptions.
35
+
Currently, you can use the directives only on object types, input types, interface types and their fields or fields resolvers, as well as queries, mutations and subscriptions. Other locations like scalars, enums, unions or arguments are not yet supported.
36
36
37
37
So the `@Directive` decorator can be placed over the class property/method or over the type class itself, depending on the needs and the placements supported by the implementation:
0 commit comments