Skip to content

Commit

Permalink
Merge pull request #13636 from omran95/omran95/add-inline-comment-to-…
Browse files Browse the repository at this point in the history
…runValidators-query-types

Types: Add inline comment to to tell the default value of the runValidator flag in the queryOptions types
  • Loading branch information
vkarpov15 committed Jul 20, 2023
2 parents c44926c + 786a406 commit faf6bf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit faf6bf7

Please sign in to comment.