I would update a collection setting the value only if the new values are not null. I have a code like this:
... var userName = req.body.nome; var userSurn
You can use lodash like this other question: https://stackoverflow.com/a/33432857/4777292
_.pickBy({ a: null, b: 1, c: undefined }, _.identity);
would be
{b:1}