Skip to content

False positive with no unused variable rule #61

Closed
@jbttn

Description

@jbttn

Variables contained within objects are not detected by the "no unused variable" rule:

query Foo($a: String) {
  field(object: { a: $a })
}

"Variable "$a" is never used in operation "Foo"."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions