-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about descriptions for TypeExtensions #900
Comments
Type extensions don’t really “exist” once the schema is constructed so where would their descriptions go? How would you query them through GraphQL? The only use I can think is to add or replace the description of the underlying type; but the risk there is ambiguity - what if a description is presented in both locations? Maybe it could append? We’re currently considering adding descriptions to operations and fragments, so maybe this would make sense alongside that, but I fear it may be confusing. What do you think? |
Also if you have multiple extensions for a single type and every of those has a descriptions, which should you take. In the end, the extension will just add new fields or directives to the type. If you look at the type validation rule it's also clear that nothing a type extension brings is allowed to already be on the type. |
OK, thanks. I thought so. |
See http://spec.graphql.org/October2021/#sec-Type-Extensions :
So those parts of schema are server-side.
And from http://spec.graphql.org/October2021/#sec-Descriptions:
I see that extensions are used to extend schema definitions but they do not have descriptions. Is it done intentionally?
The text was updated successfully, but these errors were encountered: