-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(query): remove count()
and findOneAndRemove()
from query chaining
#14692
Conversation
…cs get fully validating if they're directly modified Fix #14677
…ojection option Fix #14680
fix(document): avoid passing validateModifiedOnly to subdocs so subdocs get fully validating if they're directly modified
fix(projection): handle projections on arrays in `Model.hydrate()` projection option
fix: handle casting primitive array with $elemMatch in bulkWrite()
types(connection): fix return type of withSession()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, do we need to modify the TS declarations for this as well?
to my knowledge that has already been removed, the only mentions about |
Fix #14689
Summary
A bit of an unfortunate case where mquery still supports
count()
andfindOneAndRemove()
, which means you can still access those functions in Mongoose 8 with query chaining. This PR removes that.Examples