The constructor for the class.
The database document field to use to represent the type of the class. If not specified, the field name from the Configuration is used. Only valid on the root mapping of an inheritance hierarchy.
Readonly property gets the value used to represent the class type in the database document.
Readonly flags that describe the mapping. This value is assigned internally and should not be modified.
Readonly property indicates if this class mapping has a base class.
Readonly property indicates if this class mapping has derived classes.
The name of the class.
Returns true if the mapping has the specified flags; otherwise, returns false.
Sets the value used to represent the class type in the database document. If not specified, the naming strategy in the Configuration is used to determine the discriminator value based on the class name.
The value to use for the discriminator for this class.
Validates a property before adding it to the mapping. Returns any validation error messages or undefined if none.
The property to validate.
The error message.
Generated using TypeDoc
Represents the mapping from a document to a named class type.