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

inputValueDeprecation in codegen config doesn't work #1453

Open
4 tasks
yamatsum opened this issue Jul 18, 2024 · 1 comment
Open
4 tasks

inputValueDeprecation in codegen config doesn't work #1453

yamatsum opened this issue Jul 18, 2024 · 1 comment

Comments

@yamatsum
Copy link

yamatsum commented Jul 18, 2024

Issue workflow progress

dotansimha/graphql-code-generator#9659 (comment)

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

    Make sure to fork this template and run pnpm run generate in the terminal.

    Please make sure the Codegen and plugins version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug
There is a bug in codegen to begin with.
The bug is that it removes deprecated fields.
dotansimha/graphql-code-generator#9659

There is a way to set up inputValueDeprecation as a workaround for that bug
Even that workaround doesn't work🥲

However, it works if you use codegen.ts without using graphql-config.

To Reproduce
Steps to reproduce the behavior:

Expected behavior

Environment:

  • OS:
  • GraphQL Config Version:
  • NodeJS:

Additional context

@fuesec
Copy link

fuesec commented Aug 8, 2024

running into the same issue

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

2 participants