Skip to main content
Version: 57.2.0

ConsentResponseModel

Extends

Constructors

Constructor

new ConsentResponseModel<DocType>(doc?, fields?, options?): Document<unknown, object, ConsentResponseDocument, { }, DefaultSchemaOptions> & Omit<ConsentResponseDocument & Required<{ }> & object, never> & HydratedDocumentOverrides<ConsentResponseMethods>

Parameters

doc?

DocType

fields?

any

options?

AnyObject

Returns

Document<unknown, object, ConsentResponseDocument, { }, DefaultSchemaOptions> & Omit<ConsentResponseDocument & Required<{ }> & object, never> & HydratedDocumentOverrides<ConsentResponseMethods>

Inherited from

mongoose.Model<ConsentResponseDocument, object, ConsentResponseMethods>.constructor

Methods

findExactlyOne()

findExactlyOne(query, errorArgs?): Promise<Document<ObjectId, any, any, Record<string, any>, { }> & ConsentResponseDocument>

Parameters

query

Record<string, unknown>

errorArgs?

Partial<APIErrorOptions>

Returns

Promise<Document<ObjectId, any, any, Record<string, any>, { }> & ConsentResponseDocument>

Inherited from

ConsentResponseStatics.findExactlyOne


findOneOrNone()

findOneOrNone(query, errorArgs?): Promise<Document<ObjectId, any, any, Record<string, any>, { }> & ConsentResponseDocument | null>

Parameters

query

Record<string, unknown>

errorArgs?

Partial<APIErrorOptions>

Returns

Promise<Document<ObjectId, any, any, Record<string, any>, { }> & ConsentResponseDocument | null>

Inherited from

ConsentResponseStatics.findOneOrNone