Defines this path as immutable. Mongoose prevents you from changing immutable paths unless the parent document has isNew: true.
If true adds a required validator for this property
Set to true if this path should always be included in the results, false if it should be excluded by default. This setting can be overridden at the query level.
Allows excluding paths from versioning (i.e., the internal revision will not be incremented even if these paths are updated). DO NOT do this unless you know what you're doing. For sub-documents, include this on the parent document using the fully qualified path.
You can also use the dedicated decorator @SkipVersioning()
Set's the type used by this column.
Adds validator(s) for this document path. Validators always receive the value to validate as their first argument and must return Boolean. Returning false means validation failed.
Generated using TypeDoc
Sets a default value or value for the path. If the value is a function, the return value of the function is used as the default.
https://mongoosejs.com/docs/api/schematypeoptions.html#schematypeoptions_SchemaTypeOptions-default