What is the problem in my code? How to delete a collection from MongoDB?
I am trying to delete a collection from mongodb using postmap API. Below is my code.The update function is working fine.But, delete function isn't working. It's displaying internal server error.I dont know why? const router = require("express").Router(); const User =…