- Preparing search index...
- The search index is not available
biorate
Interface AcceptsDiscriminator
Methods
discriminator
- discriminator<D>(name, schema, value?): mongoose.Model<D, {}, {}, {}, IfAny<D, any, mongoose.Document<unknown, {}, D> & Require_id<D>>, any>
-
Parameters
-
name: string | number
-
-
Optional
- discriminator<T, U>(name, schema, value?): U
-
Parameters
-
name: string | number
-
-
Optional
Returns U
Adds a discriminator type.