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 19b490d commit ac66c7bCopy full SHA for ac66c7b
types/query.d.ts
@@ -128,7 +128,7 @@ declare module 'mongoose' {
128
updatedAt?: boolean;
129
}
130
131
- interface QueryOptions<DocType = any> extends
+ interface QueryOptions<DocType = unknown> extends
132
PopulateOption,
133
SessionOption {
134
arrayFilters?: { [key: string]: any }[];
@@ -160,7 +160,7 @@ declare module 'mongoose' {
160
* Set `overwriteImmutable` to `true` to allow updating immutable properties using other update operators.
161
*/
162
overwriteImmutable?: boolean;
163
- projection?: ProjectionType<any>;
+ projection?: { [P in keyof DocType]?: number | string } | AnyObject | string;
164
/**
165
* if true, returns the full ModifyResult rather than just the document
166
0 commit comments