I'm trying to update certain column value of my class matching the objectId of the class , Here is my code below
var GameScore = Parse.Object.extend("Address");
var query = new Parse.Query(GameScore);
query.equalTo("objectId", "xxxx");
query.first({
success: function(object) {
alert(JSON.stringify(object));
object.set("address","kkkkkk");
object.save();
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
});
Now in the success function i get the row data for the given objectId, But the object.set and object.save alone not working , please advice what is gone wrong here.
I get "{"code":101,"error":"object not found for update"}" error in the reponse.
Thanks in advance :)