I can’t pass the 11th task from Backend Development Certification’s MongoDB & Mongoose course. I have to use Model.remove() method to remove a database entry. But when I use it, the console tells me that this method is deprecated. It suggests alternate methods deleteOne() and deleteMany(). Any suggestions on how to pass the test?
Please post a link to your Replit.
Make sure you installed the version of mongoose that you are asked to in the initial challenge.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.