Skip to content
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

introspection includeDeprecated on INPUT_FIELDs #2973

Open
chriss-de opened this issue Mar 19, 2024 · 0 comments
Open

introspection includeDeprecated on INPUT_FIELDs #2973

chriss-de opened this issue Mar 19, 2024 · 0 comments

Comments

@chriss-de
Copy link

What happened?

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

Minimal graphql.schema and models to reproduce

query IntrospectionQuery { __schema { types { inputFields(includeDeprecated: true) { isDeprecated deprecationReason } } } }

versions

  • v0.17.45
  • 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant