Skip to content

Support for union type #96

@bobsingor

Description

@bobsingor

I would like to use auto relay for union types:
https://typegraphql.com/docs/1.1.1/unions.html

Trying to use it with union types will give me the following typescript error:
Type 'Document | Folder' is not assignable to type 'ClassType<any>'.

It's not just a typescript error because if I try to do
@RelayedQuery(() => SearchResultUnion as any)

I will get undefinedConnection as a return type inside my graphql schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions