-
-
Notifications
You must be signed in to change notification settings - Fork 912
bugfix: fix introspection and re-declaration of config #1858
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
bugfix: fix introspection and re-declaration of config #1858
Conversation
""" | ||
{"query":"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n description\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n"} | ||
""" | ||
And print last JSON response |
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.
So this is failing with:
│ {
│ "errors": [
│ {
│ "debugMessage": "Unknown kind of type: StringIterableUnionInput",
│ "message": "Internal server error",
│ "category": "internal",
│ "locations": [
│ {
│ "line": 62,
│ "column": 5
│ }
│ ],
│ "path": [
│ "__schema",
│ "types",
│ 258,
│ "inputFields",
│ 2,
│ "type",
│ "kind"
│ ]
│ },
│ {
│ "debugMessage": "Unknown kind of type: StringIterableUnionInput",
│ "message": "Internal server error",
│ "category": "internal",
│ "locations": [
│ {
│ "line": 22,
│ "column": 5
│ }
│ ],
│ "path": [
│ "__schema",
│ "types",
│ 259,
│ "kind"
│ ]
│ }
│ ],
│ "data": []
│ }
In 2.2.5 this is not failing.
fe5acf3
to
f093e07
Compare
ping @alanpoulain for a review when you have time please. |
73ff5dc
to
92ac4c9
Compare
* update webonyx/graphql to last version where it introduce a $config and remove it * fix the SchemaBuilder to be able to generate the documentation
92ac4c9
to
d520833
Compare
Okay so this fixes the generation of the schema, but it does not fix how GraphiQL expects the schema to be. Here is a valid reproducer : Simperfit/graphql-api@bb1e22d (this patch needs to be applied on the vendor directory) |
I'm working on it. I've identified the issue and opened an issue in graphql-php. See webonyx/graphql-php#272. |
So, I was trying GraphiQL, and wanted to develop an little test app with it see Simperfit/graphql-api@b521052 but I got into a little bug on the re-declaration of config, that fixed, i've seen another error with the declared type in the
SchemaBuilder
.As I don't really followed the GraphQL development, I'm trying to figure out how to fix this.