Closed thevietto closed 2 years ago
Actually, I realized the correct behavior is not what I described. Seems like a GQL engine should merge fragment and properties in that case, and return everything in the response.
{
"name" : "test",
"testProperty" : "this should be resolved",
"unwantedProperty" : "This code should not be executed as it could be an expensive calculation"
}
Still an issue in KGraphQL though..
given the following schema:
and the following query:
we got the following result, which is fine (or is it?):
The issue is, the
unwantedProperty
resolver is still getting executed because that field is declared inTestFragment
. Expected behavior is that this resolver is ignored because it is not requested by caller