Skip to content

Commit d2fec37

Browse files
authored
Update query.d.ts
1 parent b8aa209 commit d2fec37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/query.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,14 @@ declare module 'mongoose' {
124124
overwriteDiscriminatorKey?: boolean;
125125
projection?: ProjectionType<DocType>;
126126
/**
127+
* @deprecated use includeResultMetadata instead.
127128
* if true, returns the raw result from the MongoDB driver
128129
*/
129130
rawResult?: boolean;
131+
/**
132+
* if ture, includes meta data for the result from the MongoDB driver
133+
*/
134+
includeResultMetadata?: boolean;
130135
readPreference?: string | mongodb.ReadPreferenceMode;
131136
/**
132137
* An alias for the `new` option. `returnOriginal: false` is equivalent to `new: true`.

0 commit comments

Comments
 (0)