Replicated from mognoose properties
should subdocuments get their own id?
Give the Property an alias in the output Note: you should include the alias as a variable in the class, but not with a prop decorator
This option as only an effect when the plugin mongoose-autopopulate
is used
Give the Property a default Value
Only accept Values from the Enum(|Array)
Should this property have an "expires" index?
Make a property read-only
should this value get an index?
Reference an other Document (you should use Ref
Take the Path and try to resolve it to a Model
Override the ref's type {@link BasePropOptions.type} can be used too
is this value required?
include this value?
Should this property have an "text" index?
This may be needed if get/set is used (this sets the type how it is saved to the DB)
should this value be unique?
Give an Validator RegExp or Function
Set an Getter (Non-Virtual) to Post-process your value
(when using get/set both are required)
Please note that the option type
is required, if get/set saves a different value than what is defined
The Value, but modified OR anything
Set an Setter (Non-Virtual) to pre-process your value
(when using get/set both are required)
Please note that the option type
is required, if get/set saves a different value than what is defined
The Value, but modified OR anything
Generated using TypeDoc
Replicated from mognoose properties
PropertyParameter