Closed TeunKooijman closed 3 years ago
Thanks for reporting :)
@TeunKooijman Can you provide a schema with the query? It's hard to tell where things go wrong without a schema :)
Whoops, you're right, sorry about that. Try: http://pf2e.io/api/graphql?sdl
Is this
{
"__typename": "Race",
"id": "a6f1c39a-feb8-4f62-95ce-1b5ffabbbbbf",
"name": "Kobold",
"baseSpeed": 25,
"baseHealth": 6,
"size": {}
},
part of the response you get for this?
fragment RacesPage on Race {
id
name
baseSpeed
baseHealth
size {
__typename
name
... on RaceSize {
id
}
}
}
If so this more looks like fragment issue on the server. What do you think @michaelstaib
Looks like this one: https://github.com/ChilliCream/hotchocolate/issues/3166
Is this fixed?
@TeunKooijman This should be fixed with RC.0
Yep, this seems to be fixed. Apologies for the late reply.
Describe the bug The following works:
when executed like this:
But it crashes at runtime when the query is defined like this (note that size was moved to the fragment):
At runtime we can see that the following query was issued:
with the following variables:
yielding the following response (note that the size object is empty):
And the following runtime exception:
Desktop (please complete the following information):
Additional context Am I doing something wrong (e.g. misunderstanding or misusing fragments) or is this a bug?