-
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
Add a note about omitting introspection type definitions #1036
Conversation
✅ Deploy Preview for graphql-spec-draft ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
Co-authored-by: Benjie <[email protected]>
Based on Aug 3th WG discussion: I think we can untangle this change from scalars and direcives by saying that you have two options:
We can't tangle it with scalars because currently below is a valid behaviours for scalars: |
However, it creates a slightly different problem since introspection for the Query root type doesn't contain |
Thanks for circling back on this!
Edit, I'm re-reading myself and I think I got it wrong. I actually want introspection types even if
I'm confused. The spec says:
It's a "must" so my understanding is (in the current form at least), scalar type definitions must never be present in a SDL document?
|
Feels like we could do this by adding an + enum __IncludeMeta { NONE ALL ALL_EXCEPT_TYPENAME }
type __Type {
# ...
fields(
includeDeprecated: Boolean = false
+ includeMeta: __IncludeMeta = NONE
): [__Field!] |
Closing in favor of #1049 |
There is a similar note
for scalars:
for directives:
I didn't find anything for introspection types.