How to disable/inactive the data in mongoDB database instead of delete using nodejs
when I hit the delete method in postman I need to disable the data in MongoDB instead of completely delete. how to do that? router.delete("/admin/delete_profile/:id", async (req, res) => { try { await SomeModel.findByIdAndDelete(req.params.id.trim()); return send(res, RESPONSE.SUCCESS); } catch (err)…