Closed mario-merino closed 5 years ago
@vkarpov15 what version of Mongoose was countDocuments
added? we may need to do a peerDependency
with that particular >=
version.
Also I think we are missing this from docs on Mongoose with the count
-> countDocuments
deprecation:
Note that if you migrate from
count
tocountDocuments
where are query operators including, but not limited to$where
,$near
, and$nearSphere
that need replaced. See https://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#countDocuments for more information.
@niftylettuce 5.2.0: https://github.com/Automattic/mongoose/blob/master/History.md#520--2018-07-02
See docs: https://mongoosejs.com/docs/deprecations.html#-count-
Hi! Will this PR be merged?
@paullbn yes, just need a min
Please use mongoose-slug-plugin
newest version 2.0.0
:
npm install mongoose-slug-plugin@latest
Versions older than v2.0.0
have the following deprecation message now upon installation:
"If you upgrade to v2.0.0+ please ensure you are using Mongoose v5.2+ or greater"
Any issues please let me know.
cc @paullbn
Codecov Report
81.25% <100%> (ø)
Continue to review full report at Codecov.