We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8aa209 commit d2fec37Copy full SHA for d2fec37
types/query.d.ts
@@ -124,9 +124,14 @@ declare module 'mongoose' {
124
overwriteDiscriminatorKey?: boolean;
125
projection?: ProjectionType<DocType>;
126
/**
127
+ * @deprecated use includeResultMetadata instead.
128
* if true, returns the raw result from the MongoDB driver
129
*/
130
rawResult?: boolean;
131
+ /**
132
+ * if ture, includes meta data for the result from the MongoDB driver
133
+ */
134
+ includeResultMetadata?: boolean;
135
readPreference?: string | mongodb.ReadPreferenceMode;
136
137
* An alias for the `new` option. `returnOriginal: false` is equivalent to `new: true`.
0 commit comments