Commit fca6653
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>1 parent 17e2a47 commit fca6653
File tree
5 files changed
+92
-27
lines changed- spec
5 files changed
+92
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | | - | |
178 | | - | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | | - | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
271 | | - | |
272 | | - | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
236 | 287 | | |
237 | 288 | | |
238 | 289 | | |
| |||
279 | 330 | | |
280 | 331 | | |
281 | 332 | | |
282 | | - | |
| 333 | + | |
283 | 334 | | |
284 | 335 | | |
285 | 336 | | |
| |||
298 | 349 | | |
299 | 350 | | |
300 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
301 | 356 | | |
302 | 357 | | |
303 | 358 | | |
| |||
322 | 377 | | |
323 | 378 | | |
324 | 379 | | |
| 380 | + | |
| 381 | + | |
325 | 382 | | |
326 | 383 | | |
327 | 384 | | |
| |||
523 | 580 | | |
524 | 581 | | |
525 | 582 | | |
526 | | - | |
527 | | - | |
| 583 | + | |
| 584 | + | |
528 | 585 | | |
529 | 586 | | |
530 | 587 | | |
| |||
570 | 627 | | |
571 | 628 | | |
572 | 629 | | |
| 630 | + | |
573 | 631 | | |
574 | 632 | | |
575 | 633 | | |
| |||
1181 | 1239 | | |
1182 | 1240 | | |
1183 | 1241 | | |
1184 | | - | |
| 1242 | + | |
| 1243 | + | |
1185 | 1244 | | |
1186 | 1245 | | |
1187 | 1246 | | |
| |||
1200 | 1259 | | |
1201 | 1260 | | |
1202 | 1261 | | |
1203 | | - | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1204 | 1266 | | |
1205 | 1267 | | |
1206 | 1268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments