Skip to content

[Directives] can multiple directives exist on a field? #46

Answered by zieka
nyex-cell asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, multiple schema directives can exist on a field. I believe multiple directives can exist anywhere a valid directives location is. There are also many locations so you can refactor lots of repetitive logic into composable directives to make for clean schemas.

More info about directives can be found in the official spec here:
https://spec.graphql.org/June2018/#sec-Validation.Directives

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nyex-cell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants