Skip to content
New issue

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

Add option strictQuery to typescript types #10933

Closed
hasezoey opened this issue Oct 26, 2021 · 0 comments
Closed

Add option strictQuery to typescript types #10933

hasezoey opened this issue Oct 26, 2021 · 0 comments
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@hasezoey
Copy link
Collaborator

Do you want to request a feature or report a bug?
types

What is the current behavior?
Option strictQuery is not in the types

If the current behavior is a bug, please provide the steps to reproduce.

// Argument of type '"strictQuery"' is not assignable to parameter of type 'keyof MongooseOptions'.ts(2345)
mongoose.set('strictQuery', false);

What is the expected behavior?
That the option strictQuery, like strict is in the types

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose 6.0.12


Related:

@IslandRhythms IslandRhythms added the enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature label Oct 26, 2021
@vkarpov15 vkarpov15 modified the milestones: 6.0.14, 6.0.13 Oct 30, 2021
@vkarpov15 vkarpov15 added typescript Types or Types-test related issue / Pull Request and removed enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature labels Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

No branches or pull requests

3 participants