Skip to content

unused var error is triggered when var appears in an input value #743

@tpolecat

Description

@tpolecat

The unused variables check seems to be triggered when the variable appears as a value for a field on an input type.

The following yields Variable 'x' is undefined.

query getZuckProfile($x: String) {
  search(
    pattern: {
      name: $x
    }
  ) {
    id
  }
}

See failing test in https://github.com/typelevel/grackle/pull/new/issue/743

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