diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 54b1674081..8defbb2271 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -2577,6 +2577,10 @@ declare module "mongoose" { * Does nothing if schema-level timestamps are not set. */ timestamps?:boolean; + /** + * True by default. Set to false to make findOneAndUpdate() and findOneAndRemove() use native findOneAndUpdate() rather than findAndModify(). + */ + useFindAndModify?:boolean; } interface QueryUpdateOptions extends ModelUpdateOptions {