Mongodb – nodejs handling callbacks in promisses
I am tying out node.js, but not able to wrap my head around why one works and other doesn't can you explain to me why this works: app.delete('/notes/:id', (req, res) => { const id = req.params.id; const details = {…