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

types(query): add missing runValidators back to MongooseQueryOptions #14278

Merged
merged 1 commit into from Jan 22, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14275

Summary

8.1 accidentally removed a few Mongoose-specific query options, including runValidators. This PR adds those options back, and adds test to protect against future regression.

Examples

@vkarpov15 vkarpov15 added this to the 8.1.1 milestone Jan 21, 2024
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Jan 22, 2024
@vkarpov15 vkarpov15 merged commit 8265b2e into master Jan 22, 2024
5 checks passed
@orgads
Copy link
Contributor

orgads commented Jan 22, 2024

Shouldn't there be a difference between update operations and queries?

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

Successfully merging this pull request may close these issues.

[REG 8.0.3->8.0.4/8.1.0] updateOne/updateMany can no longer accept runValidators/new
3 participants