You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, damn yea this is going to bring you very deep into the weeds of the query planning process. It sounds like you are on the right track tho! Since its safe to assume that every boundary type has ID, you should be able to just ensure that ID shows up the different conditions for the union and instead of adding it straight to the selection set.
Hello!
I've met the error when using inline fragments.
Description
Schema:
Query:
If
Dog
andCat
are defined in the same location, it works well.But if you define
Dog
andCat
in different locations, then first query in plans generate:(query generated by Gateway)
Which is invalid, because we cannot query fields on
Union
, except__typename
. Graphql spec told so:https://spec.graphql.org/June2018/#sec-Unions
Possible workaround
Use defined fragments.
Query like this will work:
I'll try to provide testcase and fix for this issue.
The text was updated successfully, but these errors were encountered: