You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When asked to be introspected it returns an error:
On Jetbrains Webstorm:
A valid schema could not be built using the introspection result. The endpoint may not follow the GraphQL Specification.
Error: internal error: should never happen: valueFromAst of '{"limit":10,"page":0}' failed because of 'Invalid Syntax : offending token '"limit"' at line 1 column 25'
On Insomnia
Failed to fetch schema: Syntax Error: Expected Name, found string "limit"
Removing the .defaultValue(...) fixes the problem but runs the impossibility of not having a default value on an optional argument in the query.
I tried with a generic Input (Argument structs) and with one without using generic Input. In both cases, all introspection queries are resolved properly. Apollo Sandbox, GraphiQL, and GraphQL Playground have no issue with the introspection result as well. Haven't checked Insomnia and Jetbrains Webstorm, but they shouldn't have issue with the result if GraphiQL doesn't.
Given this schema config:
When asked to be introspected it returns an error:
Removing the
.defaultValue(...)
fixes the problem but runs the impossibility of not having a default value on an optional argument in the query.More context
The input defined is a generic struct:
And the payload:
When defining the GQL types, only
ProfileQueryInput
and notInput<ProfileQueryInput>
is defined in the schema config.The text was updated successfully, but these errors were encountered: