Interface AcceptsDiscriminator
Methods
discriminator
- discriminator<D>(name: string | number, schema: Schema<any, <internal>.Model<any, any, any, any, any>, {}, {}, {}, {}, DefaultSchemaOptions, {}>, value?: string | number | <internal>.ObjectId | DiscriminatorOptions): <internal>.Model<D, {}, {}, {}, any>
- discriminator<T, U>(name: string | number, schema: Schema<T, U, {}, {}, {}, {}, DefaultSchemaOptions, ObtainDocumentType<any, T, DefaultSchemaOptions>>, value?: string | number | <internal>.ObjectId | DiscriminatorOptions): U
Type Parameters
Parameters
Type Parameters
Parameters
Returns U
Adds a discriminator type.