I am trying to update an existing record. I successfully retrieve the row which i want to update but I don’t know why I can not set new value and update them.
I truncate my object table to have only 1 record to make sure it is the only record i retrieve and should get updated
What I am doing wrong in my code below ?
var query2 = ParseObject.GetQuery("GameScore").WhereEqualTo("playerName", PlayerName );
query2.FirstAsync().ContinueWith (t => {
ParseObject obj = t.Result;
Debug.Log (obj.ObjectId); // This line does log the correct objectId which I wan to update
Debug.Log (obj["score"].ToString()); //This line does log the correct old score
obj["score"] = GameScore; //I checked GameScore is correctly assigned a value
obj.SaveAsync();
});