File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -553,11 +553,13 @@ function mongooseQueryOptions() {
553
553
{ name : 'bar' } ,
554
554
{ name : 'baz' } ,
555
555
{
556
+ context : 'query' ,
556
557
multipleCastError : true ,
557
558
overwriteDiscriminatorKey : true ,
558
559
runValidators : true ,
559
560
sanitizeProjection : true ,
560
561
sanitizeFilter : true ,
562
+ setDefaultsOnInsert : true ,
561
563
strict : true ,
562
564
strictQuery : 'throw' ,
563
565
timestamps : false ,
Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ declare module 'mongoose' {
19
19
20
20
type MongooseQueryOptions < DocType = unknown > = Pick <
21
21
QueryOptions < DocType > ,
22
+ 'context' |
22
23
'lean' |
23
24
'multipleCastError' |
24
25
'overwriteDiscriminatorKey' |
25
26
'populate' |
26
27
'runValidators' |
27
28
'sanitizeProjection' |
28
29
'sanitizeFilter' |
30
+ 'setDefaultsOnInsert' |
29
31
'strict' |
30
32
'strictQuery' |
31
33
'timestamps' |
You can’t perform that action at this time.
0 commit comments