Skip to content

inputValueDeprecation in codegen config doesn't work #1453

@ya2s

Description

@ya2s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions