We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fields(includeDeprecated bool) for a type respects the includeDeprecated arg:
gqlgen/graphql/introspection/type.go
Lines 73 to 75 in f7a6772
Line 148 in f7a6772
EnumValues is also expected to respect the includeDeprecated arg
Schema:
schema { query: QueryRoot } type QueryRoot { onlyField: String } enum TestDeprecatedEnum { dep @deprecated notDep }
Query:
{ __type(name: "TestDeprecatedEnum") { name enumValues(includeDeprecated: false) { name } } }
Expected Output:
{ "__type": { "name": "TestDeprecatedEnum", "enumValues": [ { "name": "notDep" } ] } }
Current Output:
{ "__type": { "name": "TestDeprecatedEnum", "enumValues": [ { "name": "dep" }, { "name": "notDep" } ] } }
gqlgen version
go version
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What happened?
Fields(includeDeprecated bool) for a type respects the includeDeprecated arg:
gqlgen/graphql/introspection/type.go
Lines 73 to 75 in f7a6772
but EnumValues does not:
gqlgen/graphql/introspection/type.go
Line 148 in f7a6772
What did you expect?
EnumValues is also expected to respect the includeDeprecated arg
Minimal graphql.schema and models to reproduce
Schema:
Query:
Expected Output:
Current Output:
versions
gqlgen version
? - latestgo version
? - latestThe text was updated successfully, but these errors were encountered: