Add support for unions
(Follow-up from !30 (merged), as unions had to be left out due to time constraints)
I think a lot of this could be shared with interfaces if we compare the individual types for a list of common fields; might even be as simple as generating an interface for them on the fly.
-
See how much can be reused from interfaces. -
Resolve object types based on their database table -
(?) Throw an error at build-time if the union has no shared fields? -
Query shared fields -
(?) Allow queries to specify type-specific fields ( ... on Cat {
, etc)- Related to !9 (merged)
-
Filter by shared fields -
(?) Allow queries to filter by type-specific fields - Related to !9 (merged)
-
Order by shared columns