Open kdawgwilk opened 1 year ago
https://github.com/dotansimha/graphql-code-generator/pull/7769#issuecomment-1189228744
You can use inputValueDeprecation: true
to override the default config. It brings back the input types, however the jsdoc comments are missing instead of adding them the same way as for a type's fields. I didn't find a solution to this.
Is there a way to just set inputValueDeprecation: true
for only one of the schemas we are generating for rather than at the top level? One of our schemas introspection does not support deprecated input args so I need to disable it for that one specifically
Which packages are impacted by your issue?
@graphql-codegen/client-preset
Describe the bug
The following type in SDL
Generates the following TS types using the
client-preset
Your Example Website or App
https://codesandbox.io/p/sandbox/muddy-leaf-wuqws1?file=%2Frenovate.json&selection=%5B%7B%22endColumn%22%3A37%2C%22endLineNumber%22%3A12%2C%22startColumn%22%3A37%2C%22startLineNumber%22%3A12%7D%5D
Steps to Reproduce the Bug or Issue
yarn codegen:watch
types/graphql.ts
UserFilter
typeExpected behavior
The generated TS types should include deprecated fields
Screenshots or Videos
No response
Platform
graphql
version: 16@graphql-codegen/cli
version(s): 3.3.1@graphql-codegen/client-preset
version(s): 3.0.1Codegen Config File
Additional context
No response