Add descriptions to executable definitions#892
Conversation
|
✔️ Deploy Preview for graphql-spec-draft ready! 🔨 Explore the source changes: 14cce61 🔍 Inspect the deploy log: https://app.netlify.com/sites/graphql-spec-draft/deploys/615f262e5946770008f041ee 😎 Browse the preview: https://deploy-preview-892--graphql-spec-draft.netlify.app/draft |
|
It's an incomplete PR at the moment:
|
|
Capturing feedback from WG (suggested by @fotoetienne): |
|
Implemented in graphql/graphql-js#3402 |
|
@fotoetienne is volunteering to champion this RFC, and we agreed to move this to Draft RFC 2 |
|
FWIW, Apollo Kotlin has support for this. We use this to add KDoc to generated types. The description is stripped by the compiler right now but we could keep it if this were to become more widely supported. |
|
Would it be ok to close this one in favor of #1170? |
|
Superseded by #1170 |
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:
Example: