Skip to content

Commit

Permalink
types: add applyVirtuals() to types
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 26, 2024
1 parent fdfb385 commit 54844e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ declare module 'mongoose' {
applyDefaults(obj: AnyObject): AnyObject;
applyDefaults(obj: TRawDocType): TRawDocType;

/* Apply virtuals to the given POJO. */
applyVirtuals(obj: AnyObject, virtalsToApply?: string[]): AnyObject;

/**
* Sends multiple `insertOne`, `updateOne`, `updateMany`, `replaceOne`,
* `deleteOne`, and/or `deleteMany` operations to the MongoDB server in one
Expand Down

0 comments on commit 54844e3

Please sign in to comment.