Open abouroubi opened 1 year ago
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
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