At a glance
- Identifier: #892
- Stage: RFC X / Superseded
- Champion: @IvanGoncharov
- Latest activity: Added to WG agenda on 2025-06-05
- Spec PR: https://github.com/graphql/graphql-spec/pull/892
Spec PR description
Was already discussed during WG: https://github.com/graphql/graphql-wg/blob/main/notes/2021-04-01.md#adding-descriptions-to-queries-and-fragments-ivan
I prepare a format proposal, here is a couple of key points:
- You can add descriptions on operations, fragments, and query variables
- You can't add description on the short form of operation only full form.
Example:
"Some description"
query SomeOperation(
"ID you should provide"
$id: String
"Switch for experiment ...."
$enableBaz: Boolean = false,
) {
foo(id: $id) {
bar
baz @include(if: $enableBaz) {
...BazInfo
}
}
}
"Some description here"
fragment BazInfo on Baz {
# ...
}
Timeline
- Added to WG agenda on 2025-06-05
- Added to WG agenda on 2025-05-15
- Spec PR created on 2021-10-07 by IvanGoncharov
- Commit pushed on 2021-10-07 by IvanGoncharov: Add descriptions to executable definitions
- Added to WG agenda on 2021-10-07
- Mentioned in WG notes on 2021-10-07