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

Support deprecated input values #2415

Open
jhalborg opened this issue Jun 24, 2024 · 2 comments
Open

Support deprecated input values #2415

jhalborg opened this issue Jun 24, 2024 · 2 comments

Comments

@jhalborg
Copy link

jhalborg commented Jun 24, 2024

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
}
@dimaMachina
Copy link
Owner

#1891 (comment)

@jhalborg
Copy link
Author

Hehe, deja vu 😄 Sorry I missed your replies last year.

"graphql": "16.8.1",

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