You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing is, properties with @prop can still be working on extended class such as url and originalFilename. Both will be inherited along with its decorator on the extended class.
Is there an existing issue for this?
Current behavior
Assume I have these classes:
then trying to populate
uploadedBy
by usingwill result in error:
I don't want to set
strictPopulate
tofalse
.The only way it will be working if I re-declare it on extended class
GroupPhoto
such as:The thing is, properties with
@prop
can still be working on extended class such asurl
andoriginalFilename
. Both will be inherited along with its decorator on the extended class.Minimum reproduction code
https://gist.github.com/smujaddid/1cb930d92fe6483f9f1a072836c43266
Steps to reproduce
No response
Expected behavior
I'm expecting properties decorated with
@virtual
do not need to be re-declared on extended class just like@prop
Package version
10.1.0
mongoose version
8.8.1
NestJS version
10.4.8
Node.js version
20.18.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: