I receive a JSON with lot of information but I want to delete a particular data, for example, if I receive the variable name, I want to remove this variable before adding my JSON in my Database. This is my function POST:
app.post("/:coleccion", function (req, res, next) {
POST
if(req.body.name)
// Here I need delete "name" if I receive this variable <------
req.collection.insert(req.body, {}, function (e, result) {
if(e) return next(e);
res.send(result);
});
});