Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for union type #96

Open
bobsingor opened this issue Apr 16, 2022 · 0 comments
Open

Support for union type #96

bobsingor opened this issue Apr 16, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@bobsingor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants