File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ declare module 'mongoose' {
222
222
/** Creates a `countDocuments` query: counts the number of documents that match `filter`. */
223
223
countDocuments (
224
224
filter ?: FilterQuery < TRawDocType > ,
225
- options ?: ( mongodb . CountOptions & MongooseSpecificQueryOptions ) | null
225
+ options ?: ( mongodb . CountOptions & Omit < MongooseSpecificQueryOptions , 'lean' | 'timestamps' > ) | null
226
226
) : QueryWithHelpers <
227
227
number ,
228
228
THydratedDocumentType ,
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ declare module 'mongoose' {
110
110
* aren't explicitly allowed using `mongoose.trusted()`.
111
111
*/
112
112
sanitizeFilter ?: boolean ;
113
+ /* Set to `true` to automatically sanitize potentially unsafe user-generated query projections */
114
+ sanitizeProjection ?: boolean ;
113
115
setDefaultsOnInsert ?: boolean ;
114
116
/** overwrites the schema's strict mode option */
115
117
strict ?: boolean | string ;
You can’t perform that action at this time.
0 commit comments