mongoose: add context to the ModelFindByIdAndUpdateOptions (#27759)

This commit is contained in:
Jimmy Grand
2018-08-06 18:53:12 +02:00
committed by Sheetal Nandi
parent 44f4f58991
commit ce3424af64

View File

@@ -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 {