-
Notifications
You must be signed in to change notification settings - Fork 216
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 is deprecated #144
Comments
Even I have the same error |
Same problem here and because I'm not sure if there will be any update here, I have created small service on base this library, used in schema on the same principle but return promise and using only page, sort and limit, maybe it will help -
|
Same problem. I have forked the project (from version-5.0.3) to fix the warning.
|
My approach change :
\node_modules\mongoose\lib\query.js:1950 change :
|
I see DaviRJ fixed this 4 days ago... how do I update mongoose-paginate so that this fix is included in my node backend? doing |
@bitfede He didn't, there are 11 tests failing, so his branch is not merged. |
Is there any fix to this? |
in:
how to fix: |
@lechuit,That's not a proper solution, will need to fix it each time node modules are generated. @paulbertil, I would suggest using mongoose-paginate-v2 instead. |
Thank's @AmrSaber |
This is Work , But How Can We Trust This ? Because in The Server or docker container we Can Not Access To this file |
I use Node v8.11.1 and these packages:
And this get this warning during execution of
paginate()
:The text was updated successfully, but these errors were encountered: