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

Collection.count deprecation warning #12

Closed
Gustav0ar opened this issue Jan 26, 2019 · 4 comments
Closed

Collection.count deprecation warning #12

Gustav0ar opened this issue Jan 26, 2019 · 4 comments

Comments

@Gustav0ar
Copy link

Gustav0ar commented Jan 26, 2019

Do you plan to fix the deprecation warning for using the this.count?

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

I'm using version 1.0.19

@aravindnc
Copy link
Owner

@Gustav0ar $where will not work if we don't use this.count()
So I'm looking for a solution and will be updating the package as early as possible.

@aravindnc
Copy link
Owner

@Gustav0ar There is no other option I guess, we need to remove the support for $where.

@Gustav0ar
Copy link
Author

Gustav0ar commented Jan 28, 2019

That's a shame, but fortunately $where isn't a requirement, just a helper for those who likes to use SQL syntax

@aravindnc
Copy link
Owner

@Gustav0ar New version has been updated with the fix removing the $where support.

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

2 participants