Skip to content

Support deprecated input values #2415

Closed as not planned
Closed as not planned
@jhalborg

Description

@jhalborg

Is your feature request related to a problem? Please describe.

If the schema deprecates input values (args, input fields) the linter will complain with the error

Parsing error: [graphql-eslint] Error while loading schema: Directive "@deprecated" may not be used on INPUT_FIELD_DEFINITION.

Describe the solution you'd like

No error, as deprecated input values are allowed in GraphQL

Describe alternatives you've considered

--

Additional context

"@graphql-eslint/eslint-plugin": "^3.20.1",

Schema sample:

type Query {
  controlStates(id: ID!, Hierarchy: Hierarchy @deprecated(reason: "No longer required, info is retrieved based on device id")): Device
}

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