diff --git a/types/query.d.ts b/types/query.d.ts index e60846e60a6..0958e30dc9b 100644 --- a/types/query.d.ts +++ b/types/query.d.ts @@ -136,6 +136,10 @@ declare module 'mongoose' { * Another alias for the `new` option. `returnOriginal` is deprecated so this should be used. */ returnDocument?: 'before' | 'after'; + /** + * Set to true to enable `update validators` + * (https://mongoosejs.com/docs/validation.html#update-validators). Defaults to false. + */ runValidators?: boolean; /* Set to `true` to automatically sanitize potentially unsafe user-generated query projections */ sanitizeProjection?: boolean;