From ce3424af6499f0c590f5301a29951dfd71901a00 Mon Sep 17 00:00:00 2001 From: Jimmy Grand Date: Mon, 6 Aug 2018 18:53:12 +0200 Subject: [PATCH] mongoose: add context to the ModelFindByIdAndUpdateOptions (#27759) --- types/mongoose/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) 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 {