We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1ed13f + 7ed2f6a commit 31e0a69Copy full SHA for 31e0a69
types/query.d.ts
@@ -647,7 +647,7 @@ declare module 'mongoose' {
647
648
/** Specifies which document fields to include or exclude (also known as the query "projection") */
649
select<RawDocTypeOverride extends { [P in keyof RawDocType]?: any } = {}>(
650
- arg: string | string[] | Record<string, number | boolean | object>
+ arg: string | string[] | Record<string, number | boolean | string | object>
651
): QueryWithHelpers<
652
IfEquals<
653
RawDocTypeOverride,
0 commit comments