From e06a7cc6e4595f252ec141b7359c4baee0fe880b Mon Sep 17 00:00:00 2001 From: Khalid Saifullah Date: Wed, 20 Sep 2017 20:20:11 +1000 Subject: [PATCH] Missing options for ModelFindByIdAndUpdateOptions @see http://mongoosejs.com/docs/api.html#model_Model.findByIdAndUpdate --- types/mongoose/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 9cb4d6a7f7..ac8f0b4a72 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -2660,6 +2660,15 @@ declare module "mongoose" { sort?: Object; /** sets the document fields to return */ select?: Object; + /** if true, passes the raw result from the MongoDB driver as the third callback parameter */ + passRawResult?: boolean; + /** overwrites the schema's strict mode option for this update */ + strict?: boolean; + /** + * if true, run all setters defined on the associated model's schema for all fields + * defined in the query and the update. + */ + runSettersOnQuery?: boolean; } interface ModelFindOneAndUpdateOptions extends ModelFindByIdAndUpdateOptions {