-
Notifications
You must be signed in to change notification settings - Fork 391
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
resolveType on unions and itnerface from type-graphql ignored when using code first approach #231
Comments
Asked in MichalLytek/type-graphql#326 already, apparently out of their scope so I suppose it belongs here. It's a new feature in type-graphql but I think it would be nice to have it here. |
It should be fixed in the @next version ( |
Published as |
@kamilmysliwiec still reproducible, I have latest versions @nestjs/graphql 6.4.3 and type-graphql 0.17.5 |
can confirm - CustomFieldConfigUnion doesnt work. |
resolveType for createUnionType still doesn't work. Are there any other solutions? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
When I try defining a resolveType function on createUnionType, it compiles succesfully but I'm getting this warning:
The type then really isn't working and complains with this:
To Reproduce
(I didn't test if the resolveType method itself works properly, but that's unrelated to this issue as it's obviously ignored - definitely doesn't get called).
Expected behavior
This should work and resolve into the proper type at runtime.
Enviorment
The text was updated successfully, but these errors were encountered: