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
Introspection request results in a GRAPHQL_VALIDATION_FAILED
I try to query __schema.types.inputFields with arguments includeDeprecated: true and fields isDeprecated and deprecationReason
I already looked at the code and tried to extend gqlgen/graphql/introspection/type.go for InputValue to be like the code for EnumValue but it goes south when I call generate.
Maybe someone can fix that - or at least hint me into the direction what I'm missing and I can try a PR.
But the TESTING.md seems to be old - so this is another challenge...
What did you expect?
Correct introspection result. Response with all values - just like with introspection for enum values
What happened?
Introspection request results in a GRAPHQL_VALIDATION_FAILED
I try to query
__schema.types.inputFields
with argumentsincludeDeprecated: true
and fieldsisDeprecated
anddeprecationReason
I already looked at the code and tried to extend
gqlgen/graphql/introspection/type.go
for InputValue to be like the code for EnumValue but it goes south when I call generate.Maybe someone can fix that - or at least hint me into the direction what I'm missing and I can try a PR.
But the TESTING.md seems to be old - so this is another challenge...
What did you expect?
Correct introspection result. Response with all values - just like with introspection for enum values
Minimal graphql.schema and models to reproduce
query IntrospectionQuery { __schema { types { inputFields(includeDeprecated: true) { isDeprecated deprecationReason } } } }
versions
The text was updated successfully, but these errors were encountered: