RFC X / Superseded

Add descriptions to executable definitions

Opened on
Closed on

At a glance

Project
GraphQL Spec
Identifier
#892
Stage
RFC X / Superseded
Champion
@IvanGoncharov
Updated
2025-06-26
Latest activity
Pull request closed on
Source

Pull request 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:

  1. You can add descriptions on operations, fragments, and query variables
  2. 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

June 2025

  • Pull request closed on
  • Marked as Superseded on by benjie
  • Discussed in GraphQL WG
    Next Steps

    Lee: Perform final editorial review of the "descriptions on executables" RFC

    Zoom summary · GraphQL WG · 2025-06-05

    The team discussed several GraphQL proposals and updates. Steven reported progress on adding descriptions to executable operations, which was moved from RFC 1 to RFC 2, and he is working on implementing it in GraphQL.js. Lee mentioned that this change is on a fast track to approval once the pull request is updated. Benjie presented a bug fix for schema definitions, ensuring descriptions are not dropped when the schema keyword is excluded. The team agreed to bump this change to RFC 2 as well. Benjie also introduced a trivial editorial change to standardize the use of "assert" in algorithms. Mark briefly mentioned a proposal on schema coordinates but was interrupted by his children and asked Benjie to continue the discussion.

    Zoom summary · GraphQL WG · 2025-06-05

May 2025

  • Advanced to RFC 2 on by leebyron
  • Discussed in GraphQL WG

    The team reviewed several agenda items including executable definitions and error propagation, with Steven presenting an RFC for adding descriptions to executable document definitions that was moved to RFC 2 and Stephen volunteering to champion it. The group discussed implementing a capability system for GraphQL services to indicate supported features and error behaviors, with Benjie and Lee debating different approaches and naming conventions while agreeing to keep the initial implementation simple. The team also discussed the design of a service capabilities system and naming conventions for GraphQL concepts, with Benjie planning to write up a version focused on error propagation capabilities and Lee agreeing to review the proposal further.

    Zoom summary · GraphQL WG · 2025-05-15
    Next Steps

    Stephen to update the working group agenda for June 5th with progress on the executable definitions RFC.

    Zoom summary · GraphQL WG · 2025-05-15
    Next Steps

    Stephen to rebase and update the pull requests related to the executable definitions RFC.

    Zoom summary · GraphQL WG · 2025-05-15

    The team discussed several agenda items, including executable definitions and error propagation. Steven presented an RFC for adding descriptions to executable document definitions, which the group agreed to move to RFC 2. Stephen volunteered to take over as champion for this RFC. The team decided to prioritize getting the GraphQL.js PR merged and for Steven to report progress at the next working group meeting. Lee suggested creating an RFC tracker to help implementers follow along with upcoming changes. Benjie shared a personal RFC tracker, but the group agreed a more official system would be needed in the future.

    Zoom summary · GraphQL WG · 2025-05-15

October 2021