Tell us what’s happening:
removeMany function isn’t working even after when i tried the solution.
Your project link(s)
solution: https://replit.com/@prathammishra1/boilerplate-mongomongoose-1
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Challenge: Delete Many Documents with model.remove()
Link to the challenge:
1 Like
Have a look at this solution that has helped a few others, usually this is caused by using the latest version of mongoose, the course is being updated to reflect this tip. Try the versions in this post and you should pass! Nice work.
Can you confirm that you tried the following versions in your Package.json? If not, could you try with these versions and see if you are still having the same issue.
“mongodb”: “^4.1.1”,
“mongoose”: “^5.13.8”
system
closed
March 3, 2022, 5:49am
#4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.