Warning of deprecated MongoDB driver method
opened this issue · comments
Deleted user commented
I'm having an issue:
(node:4212) [MONGODB DRIVER] Warning: cursor.count is deprecated and will be removed in the next major version, please use
collection.estimatedDocumentCount
orcollection.countDocuments
instead
I have a suggestion:
- Change
cursor.count
in these locations tocollection.countDocuments
as suggested
Thanks a lot !