Tell us what’s happening:
I can’t solve that challange and i get back error that say that is collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
I removed the original mongoose and i have installed the older version according to one of the answers here, but it didn’t work as well,
I didn’t install validator but what is the problem with other packages, what is the correlation with mongoose ? why it won’t do the delete request to the data base?
I have started the project again all actions are working
but the only function that it dons’t work is Model.remove() or emoveManyPeople
is why the site don’t want to accept it ?