I use Node.js and back4app.
I would like to update a field in user object. Therefore I have read the documentation and have tryed the solution of similare problems. But nothing works for me.
This is the last code, that I have tryed out:
var progressId = 'xyz';
var User = Parse.Object.extend("User");
var user = new User();
user.save().
then((user) => {
user.set("progressId", progressId);
return user.save();
})
.catch(err => {
console.log(err);
});
According to my error code ("bad or missing username") I need the username. It ist known, but how do I have to use it in this code?
And what is the best way updating a user?