It appears that the curriculum may be outdated and needs a buff. The last few challenges haven’t been passing tests due to Mongoose methods that have been deprecated and causing errors on repl.it . Just thought you might want to know. More specifically, findOneAndUpdate()
and findOneAndDelete()
and x.remove()
give deprecated notices in the console and the test doesn’t reflect the new methods that should be used. Thank you!
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
.
Challenge: Delete One Document Using model.findByIdAndRemove
Link to the challenge: