-
Notifications
You must be signed in to change notification settings - Fork 2k
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
starWarsIntrospection-test __schema.types confusion #2081
Comments
@burner You absolutely correct types (both standard and user-defined) are included only if they are used in the schema. graphql-js/src/type/introspection.js Line 227 in f85d9b6
and in standard directives, e.g.: graphql-js/src/type/directives.js Line 133 in f85d9b6
|
Thank you for the quick answer. |
@burner No problem. The main purpose of graphql-js/src/__tests__/starWarsIntrospection-test.js Lines 29 to 32 in d9f959e
So please feel free to open similar issues if you will have such questions. |
@IvanGoncharov will do, thanks |
I'm implementing a graphql backend in D and when looking at the expected types
returned in https://github.com/graphql/graphql-js/blob/master/src/__tests__/starWarsIntrospection-test.js#L22
I'm confused why "Boolean" is part of the returned names.
I get that bool is a standard type but so is Int and Int does not appear in the names array.
That being said, no field or inputvalue has the type bool or int in the star wars schema.
Could somebody please clarify this for me
The text was updated successfully, but these errors were encountered: