Interface DiscriminatorObject

interface DiscriminatorObject {
    type: AnyParamConstructor<any>;
    value?: string;
}

Properties

Properties

The Class to use

value?: string

The Name to differentiate between other classes Mongoose JSDOC: [value] the string stored in the discriminatorKey property. If not specified, Mongoose uses the name parameter.

Default

{string} The output of "getName"