All variables defined by an operation must be used in that operation or a fragment transitively included by that operation. Unused variables cause a validation error.
So the following query should be considered invalid:
query Test($foo:Int) {
sightings{id city}
}
However, KGraphQL successfully executes it without errors.
According to the spec:
So the following query should be considered invalid:
However, KGraphQL successfully executes it without errors.