-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] GraphQL Schema Definition Language (SDL) (#90)
* [RFC] GraphQL IDL additions This adds the type definition syntax to the GraphQL specification. * Add directives to all schema definition forms * expose more in example directive * Include more directive locations * Include deprecated directive * Note on omission of schema definition * Explicit ObjectTypeExtension grammar to support extending without adding fields * Ensure directives cannot reference variables in SDL * grammar * Remove duplicate EnumValue * First class descriptions * Minor wording change about markdown and TSL -> SDL * Add validation rule that executable documents cannot include SDL * Move extend keyword * Order of sections * Move language definitions into Type System section * Fix type reference header and comments * Add more examples of descriptions * Grammar * Include optional leading bar for unions & directive locations. Merging and closing #323 * Allow partial definitions (as @OlegIlyenko suggests) while legitimizing the use case by allowing type extensions for all type kinds, allowing at least the addition of new directives to any existing type. * Consistent plural usage in grammar nt rules * Remove ambiguous "may not" and explicitly state objects may implement interfaces via extensions * Extract ExecutableDefinition into a separate gramatical rule * Address review from @vergenzt * Use `&` to separate implemented interfaces, simplify grammar definitions * Fix reference in grammar summary * Fix reference to UnionMemberTypes
- Loading branch information
Showing
6 changed files
with
929 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.