Skip to content

DeprecationWarning with Possible Fix Suggestion #15

@VonSwirl

Description

@VonSwirl

DeprecationWarning:

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

Suggested fix/solution

In mongoose-datatables.js line 82

Change:
.all([query.exec(), thisSchema.count(find)])

To:
.all([query.exec(), thisSchema.countDocuments(find)])

#16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions