File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ declare module 'mongoose' {
32
32
PopulateOption ,
33
33
SessionOption {
34
34
limit ?: number ;
35
+ // @deprecated , use includeResultMetadata instead
35
36
rawResult ?: boolean ;
37
+ includeResultMetadata ?: boolean ;
36
38
ordered ?: boolean ;
37
39
lean ?: boolean ;
38
40
throwOnValidationError ?: boolean ;
Original file line number Diff line number Diff line change @@ -124,9 +124,14 @@ declare module 'mongoose' {
124
124
overwriteDiscriminatorKey ?: boolean ;
125
125
projection ?: ProjectionType < DocType > ;
126
126
/**
127
+ * @deprecated use includeResultMetadata instead.
127
128
* if true, returns the raw result from the MongoDB driver
128
129
*/
129
130
rawResult ?: boolean ;
131
+ /**
132
+ * if ture, includes meta data for the result from the MongoDB driver
133
+ */
134
+ includeResultMetadata ?: boolean ;
130
135
readPreference ?: string | mongodb . ReadPreferenceMode ;
131
136
/**
132
137
* An alias for the `new` option. `returnOriginal: false` is equivalent to `new: true`.
You can’t perform that action at this time.
0 commit comments