You are trying to use Mongo syntax with Waterline, but ORM has its own syntax. See documents for update method ; it takes two arguments: the criteria object "where" and the key / value object to change in the found instances. So you want:
User.update(
{ ULId: "IC666" },
{FHName: "Arijit Banerjee",Ward:"II"}
).exec(function(err, users) {
if(err) {return res.serverError(err);}
return res.send('success');
});
source
share