With a simple schema that returns a Person(val firstName: String, val lastName: String)
, the following query produces incorrect results:
{
me {
firstName
}
me {
lastName
}
}
Expected:
{"data":{"me":{"firstName":"John","lastName":"Doe"}}}
Actual:
{"data":{"me":{"lastName":"Doe"}}}
See https://spec.graphql.org/October2021/#example-77852
For nested fields (e.g. a PersonWrapper(val person: Person)
) this already works as expected:
{
me {
person {
firstName
}
person {
lastName
}
}
}
Results in
{"data":{"me":{"person":{"firstName":"John","lastName":"Doe"}}}}