Skip to content

Commit

Permalink
Update directives docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Jan 4, 2021
1 parent 5efd786 commit 5c1a25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Basically, we declare the usage of directives just like in SDL, with the `@` syn
@Directive('@deprecated(reason: "Use newField")')
```

Currently, you can use the directives only on object types, input types and their fields or fields resolvers, as well as queries, mutations and subscriptions.
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.

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:

Expand Down

0 comments on commit 5c1a25a

Please sign in to comment.