Add missing support for union and interface
Currently HGQL interprets all types (ObjectType, UnionType, InterfaceType) as ObjectTypes. Support of UnionTypes and InterfaceTypes is essential for the query validation and resolving.
ToDo:
-
HGQL Schema for each type check if ObjectType, UnionType or InterfaceType to add the corresponding information to the rdf graph and then to TypeConfig object -
TypeConfig add indication attribute (is union, object, interface) -
SchemaWiring Adjust the GraphQL Schema buildup to support unions and interfaces -
Query Resolving Adjust the query resolving to correctly support fields with multiple outputtypes