Skip to content

Commit 50bbaa8

Browse files
leebyronsungam3rbenjie
authored
Editorial: Improve Introspection section (#857)
* Editorial: Improve Introspection section This makes some structural changes to the introspection section and fills in some missing pieces (solved ambiguity): * Removes 4-level headers in favor of sub-section headers * Uses the same syntax and style for describing fields of all types * Defines the `__Schema` type which was previously under-defined * Defines the two enums (`__TypeKind` and `__DirectiveLocation`) which were previously under-defined. * Clarifies the `__` restriction and repeats this when defining `Name` * Moves Documentation and Description sub-sections into schema introspection section. Co-authored-by: Ivan Maximov <[email protected]> Co-authored-by: Benjie Gillam <[email protected]>
1 parent debcdc3 commit 50bbaa8

File tree

2 files changed

+139
-83
lines changed

2 files changed

+139
-83
lines changed

spec/Section 2 -- Language.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ Note: Names in GraphQL are limited to the Latin <acronym>ASCII</acronym> subset
227227
of {SourceCharacter} in order to support interoperation with as many other
228228
systems as possible.
229229

230+
**Reserved Names**
231+
232+
Any {Name} within a GraphQL type system must not start with two underscores
233+
{"__"} unless it is part of the [introspection system](#sec-Introspection) as
234+
defined by this specification.
235+
230236

231237
## Document
232238

0 commit comments

Comments
 (0)