MCPcopy
hub / github.com/Automattic/mongoose / AcceptsDiscriminator

Interface AcceptsDiscriminator

types/models.d.ts:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 }
12
13 export interface AcceptsDiscriminator {
14 /** Adds a discriminator type. */
15 discriminator<D>(
16 name: string | number,
17 schema: Schema,
18 value?: string | number | ObjectId | DiscriminatorOptions
19 ): Model<D>;
20 discriminator<T, U>(
21 name: string | number,
22 schema: Schema<T, U>,
23 value?: string | number | ObjectId | DiscriminatorOptions
24 ): Model<U>;
25 }
26
27 export type MongooseBulkWriteResult = mongodb.BulkWriteResult & {
28 mongoose?: {

Callers

nothing calls this directly

Implementers 3

Arraytypes/schematypes.d.ts
DocumentArraytypes/schematypes.d.ts
Subdocumenttypes/schematypes.d.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…