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
Add descriptions to executable documents | 2025 Update (#1170)
* Add descriptions to executable definitions
* Updated spec wording for descriptions in executable documents
- Expanded the "Descriptions" section to clarify that descriptions may appear before operation definitions (full form only), fragment definitions, and variable definitions, but not on the shorthand form of operations.
- Updated grammar summary and relevant sections to permit descriptions in these locations.
- Added a normative note that descriptions and comments do not affect execution, validation, or response, and are safe to remove from executable documents.
- Clarified and consolidated description rules in the type system section, referencing the normative rules in the language section and removing redundant statements.
- Updated execution section to include a clear normative note about ignoring descriptions and comments during execution.
- Ensured all changes are cross-referenced and consistent across the specification.
* Add example label to GraphQL code block in Language section
Enables the fancy formatting
* Refactor description section for clarity
Also:
- add color to operation description example and counter-example
- add descriptions in operation examples throughout section 2
* Add optional description to fragment and variable definitions
* Prettier
* Refactor time machine status query documentation for clarity and conciseness
* Reduced example
* Single quotes for single line description
Co-authored-by: Glen <glen.84@gmail.com>
* Refactor descriptions text, incorporating feedback from working group
* formatting
* Editorial: move descriptions definition above document
* editorial: move examples back to type system, add some links
* Editorial
---------
Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com>
Co-authored-by: Glen <glen.84@gmail.com>
Co-authored-by: Lee Byron <lee@leebyron.com>
0 commit comments