I have downloaded “mongoose”: “^6.0.3”. I solved the test but at the end i take error ** Warning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.**My code is like that
const removeManyPeople = (done) => {
const nameToRemove = 'Mary';
Person.remove({ name: nameToRemove }, (err, response) => {
if (err) return console.log(err);
done(null, response);
});
};
I also uninstall the version 6.0.3 and changed it with old version.But still failed.