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

DeprecationWarning: collection.count #171

Open
MickL opened this issue May 5, 2021 · 2 comments
Open

DeprecationWarning: collection.count #171

MickL opened this issue May 5, 2021 · 2 comments

Comments

@MickL
Copy link

MickL commented May 5, 2021

I am on mongoose 5.12.7 and see a deprecation warning:

DeprecationWarning: collection.count is deprecated, and will be removed in a future version. Use Collection.countDocuments or Collection.estimatedDocumentCount instead

@AjAy-Gadhwal
Copy link

Try this => https://www.npmjs.com/package/mongoose-paginate-async-await

@akcauser
Copy link

akcauser commented Oct 26, 2024

there is a package
https://www.npmjs.com/package/mongoose-paginate-v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants