Closed MiroslavPetrik closed 5 years ago
There is newer api for clearing the models. I'm getting the warning message
(node:25517) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
Probably this line https://github.com/seanemmer/mongoose-seed/blob/5cf1862952ec28fcd3647397da069715438e9c43/index.js#L136
Oh, just noticed there is PR for this
https://github.com/seanemmer/mongoose-seed/pull/31
There is newer api for clearing the models. I'm getting the warning message
Probably this line https://github.com/seanemmer/mongoose-seed/blob/5cf1862952ec28fcd3647397da069715438e9c43/index.js#L136