stuebingerb / KGraphQL

Pure Kotlin GraphQL implementation
MIT License
4 stars 1 forks source link

Missing/incorrect variables validation #102

Open stuebingerb opened 4 days ago

stuebingerb commented 4 days ago

According to the spec:

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.