How do you update objects in a Parse.com database?

I have an online Parse.com database and I can create objects and query them but not update. In the Xamarin section of the Parse.com documentation it only tells you how to update an object directly after you've created it which I don't want to do. I tried adapting what the documentation says for other platforms but it hasn't worked, I have also tried querying the database and entering the new field values directly after that but it treats them as separate functions. Does anyone have any help?

Tagged:

Answers

  • Problem resolved, here is the answer:

    ParseQuery<ParseObject> query = ParseObject.GetQuery("GameScore");
    ParseObject gameScore = await query.GetAsync(objectId);
    
    customer["user"] = admin;
    customer["score"] = 1338;
    await customer.SaveAsync();
    
Sign In or Register to comment.