diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 1beed12c69..fbdad58c4b 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -2983,6 +2983,8 @@ declare module "mongoose" { rawResult?: boolean; /** overwrites the schema's strict mode option for this update */ strict?: boolean; + /** The context option lets you set the value of this in update validators to the underlying query. */ + context?: string; } interface ModelFindOneAndUpdateOptions extends ModelFindByIdAndUpdateOptions {