-
Notifications
You must be signed in to change notification settings - Fork 387
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
Decorator factory should apply to nested objects #2841
Labels
Comments
Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project). |
Yes of course, here is the link: https://codesandbox.io/s/optimistic-flower-n5qhe9 |
@abouroubi Any news on this one? |
No idea, I just stopped using the PartialType |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current behavior
According to #688 and to the docs, a second argument can be sent to
PartialType()
to change the decorator applied to the parent class, for example changing fromObjectType()
toInputType()
, but if the parent class is composed of anotherObjectType()
this change doesn't apply to it, and the schema builder will fail.This code sample will fail on app startup, with the error:
Minimum reproduction code
https://codesandbox.io/s/optimistic-flower-n5qhe9
Steps to reproduce
No response
Expected behavior
The entity to compile without error.
Package version
11.0.5
Graphql version
"graphql": "^16.3.0",
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: