Tell us what’s happening:
An error shows up that says “Person.remove is not a function”. I compared my code to the solution and code is correct. The issue is that .remove is deprecated. How do I pass the test?
I tried replacing all “.remove” with “.deleteOne” in server.js but the same error is still showing up. Haven’t been able to proceed in the course. (ik it says do not edit server.js but remove is deprecated so I had no other choice, same error comes up before editing server.js so that’s not the issue)
###Your project link(s)
solution: http://localhost:3000
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
Challenge Information:
MongoDB and Mongoose - Create Many Records with model.create()