stuebingerb / KGraphQL

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

Missing/incorrect fragments validation #105

Open stuebingerb opened 17 hours ago

stuebingerb commented 17 hours ago

According to the spec:

Defined fragments must be used within a document.

So the following query should be considered invalid:

query Test {
  sightings{id city}
}
fragment Unused on UFOSighting {
  city
}

However, KGraphQL successfully executes it without errors.