Skip to content

Commit 936ae2b

Browse files
vkarpov15hasezoey
andauthored
Update types/query.d.ts
Co-authored-by: hasezoey <hasezoey@gmail.com>
1 parent 06ddc42 commit 936ae2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/query.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ declare module 'mongoose' {
104104
multipleCastError?: boolean;
105105

106106
overwriteDiscriminatorKey?: boolean;
107+
/**
108+
* Set to true to enable `update validators`
109+
* (https://mongoosejs.com/docs/validation.html#update-validators). Defaults to false.
110+
*/
107111
runValidators?: boolean;
108112
/**
109113
* Set to `true` to automatically sanitize potentially unsafe query filters by stripping out query selectors that

0 commit comments

Comments
 (0)