graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

[graphiql] Linter error for VARIABLE_DEFINITION directive with default value

Open jarreds opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Screenshot 2023-09-08 at 4 01 01 PM

Expected Behavior

I'd expect this query to not have linter errors.

Steps To Reproduce

Create a VARIABLE_DEFINITION directive and put it on a variable definition that has a default value.

Environment

  • GraphiQL Version: 3.0.5

Anything else?

No response

jarreds avatar Sep 08 '23 23:09 jarreds

Relevant section of spec for this syntax at https://spec.graphql.org/October2021/#sec-Language.Variables

jarreds avatar Sep 09 '23 03:09 jarreds