-
-
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
Query.count / Query.findOneAndRemove are still alive #14689
Milestone
Comments
vkarpov15
added a commit
that referenced
this issue
Jun 25, 2024
vkarpov15
added a commit
that referenced
this issue
Jul 1, 2024
fix(query): remove `count()` and `findOneAndRemove()` from query chaining
This was referenced Jul 30, 2024
This was referenced Jul 30, 2024
This was referenced Aug 2, 2024
This was referenced Sep 1, 2024
This was referenced Sep 3, 2024
This was referenced Sep 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Mongoose version
8.4.3
Node.js version
20.14
MongoDB server version
7.0
Typescript version (if applicable)
No response
Description
Query.prototype.count()
andfindOneAndRemove()
are still alive.I found that the issue was that the query was using mquery as it is. - permlink
mquery@5 has count() and findOneAndRemove().
Therefore, mongoose@8 removed
count()
andfindOneAndRemove()
, but the methods from mquery are being called.Steps to Reproduce
I don't think this is good code, but it still works.
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: