Including descriptions from schema in the generated types for documents #8239
Unanswered
sam-outschool
asked this question in
Ideas
Replies: 1 comment 2 replies
-
|
Hi @sam-outschool! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my project, we are looking to document our Graph more thoroughly using descriptions. Using
graphql-codegenmeans that when we have descriptions for a field, they're also included in the types as a jsdoc, available for use by code editors on hover.This behavior is perfect when working with types on our server, and I'd like to have something similar for the client side as well. I'd like to propose an option to include schema descriptions for the document-generated types as well. There's a chance I'm missing something and that this is ill-advised, but I don't see a situation where we would want to have separate descriptions for the schema and documents.
Beta Was this translation helpful? Give feedback.
All reactions