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
This adds directives to schema language and to the utilities that use it (schema parser, and buildASTSchema). Directives are one of the few missing pieces from representing a full schema in the schema language.
Note: the schema language is still experimental, so there is no corresponding change to the spec yet.
DirectiveDefinition :
- directive @ Name ArgumentsDefinition? on DirectiveLocations
DirectiveLocations :
- Name
- DirectiveLocations | Name
Example:
```
directive @Skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @include(if: Boolean!)
on FIELD
| FRAGMENT_SPREAD
| INLINE_FRAGMENT
```
0 commit comments