We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.10.1
20
4.4
5.7.3
project stage doesn't accept string as in the doc:
project
// include a, include b, exclude _id aggregate.project("a b -_id");
Typescript error:
Argument of type 'string' is not assignable to parameter of type '{ [field: string]: any; }'.ts(2345)
I think string | is missing in
string |
mongoose/types/pipelinestage.d.ts
Lines 211 to 214 in 633ff8d
Pass a string argument to the project stage
Should not show a Typescript error
The text was updated successfully, but these errors were encountered:
types(aggregate): allow calling project() with a string
24a4fd5
Fix #15300
Successfully merging a pull request may close this issue.
Prerequisites
Mongoose version
8.10.1
Node.js version
20
MongoDB server version
4.4
Typescript version (if applicable)
5.7.3
Description
project
stage doesn't accept string as in the doc:Typescript error:
I think
string |
is missing inmongoose/types/pipelinestage.d.ts
Lines 211 to 214 in 633ff8d
Steps to Reproduce
Pass a string argument to the
project
stageExpected Behavior
Should not show a Typescript error
The text was updated successfully, but these errors were encountered: