Skip to content

Improve clarity of built-in directives #633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 26, 2021
7 changes: 7 additions & 0 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,13 @@ While defining a directive, it must not reference itself directly or indirectly:
directive @invalidExample(arg: String @invalidExample) on ARGUMENT_DEFINITION
```

When returning the set of directives from the `__Schema` introspection type, both
@skip and @include directives must be included. @deprecated directive may be included
if GraphQL implementation supports the type system definition language.

When representing a GraphQL schema using the type system definition language, both @skip,
@include and @deprecated directives should be omitted for brevity.

**Validation**

1. A directive definition must not contain the use of a directive which
Expand Down