Skip to main content
Version: 57.2.0

ConsentFormModel

Extends

Constructors

Constructor

new ConsentFormModel<DocType>(doc?, fields?, options?): Document<unknown, object, ConsentFormDocument, { }, DefaultSchemaOptions> & ConsentFormDocument & Required<{ }> & object & object

Parameters

doc?

DocType

fields?

any

options?

AnyObject

Returns

Document<unknown, object, ConsentFormDocument, { }, DefaultSchemaOptions> & ConsentFormDocument & Required<{ }> & object & object

Inherited from

mongoose.Model<ConsentFormDocument, object, ConsentFormMethods>.constructor

Methods

findExactlyOne()

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

Parameters

query

Record<string, unknown>

errorArgs?

Partial<APIErrorOptions>

Returns

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

Inherited from

ConsentFormStatics.findExactlyOne


findOneOrNone()

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

Parameters

query

Record<string, unknown>

errorArgs?

Partial<APIErrorOptions>

Returns

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

Inherited from

ConsentFormStatics.findOneOrNone