Problem: Cannot return union types mixing PostgreSQL table rows and plain objects in Grafast/PostGraphile v5
Problem: Cannot return union types mixing PostgreSQL table rows and plain objects in Grafast/PostGraphile v5: a task in LegoFlow-SWE (Harbor dataset). When defining a GraphQL mutation that returns a union type that includes both a PostgreSQL-backed table type (e.g., User from a users table) and…
The task
When defining a GraphQL mutation that returns a union type that includes both a PostgreSQL-backed table type (e.g., `User` from a `users` table) and plain local object types (e.g., `UsernameConflict`, `EmailAddressConflict`), Grafast throws a planning error:
Part of Lego-X/LegoFlow-SWE.