Decorator that defines a new property mapping on the default model schema for the class it is used in.
When using typescript, the decorator can also be used on fields declared as constructor arguments (using the private
/ protected
/ public
keywords).
The default factory will then invoke the constructor with the correct arguments as well.
Optional
baseDescriptor: PropertyDescriptor
Decorator that defines a new property mapping on the default model schema for the class it is used in.
When using typescript, the decorator can also be used on fields declared as constructor arguments (using the
private
/protected
/public
keywords). The default factory will then invoke the constructor with the correct arguments as well.