I try to update a value in my Parse.com Core, but it simply does not work. I have the "objectID" of the item that i want to update
Parse.initialize("xxxx", "xxxx");
var PP = Parse.Object.extend("PP");
var PP = new PP();
var query = new Parse.Query(PP);
query.equalTo("objectId", "3Enwfu0QPQ");
query.first({
success: function (PP) {
PP.save(null, {
success: function (PP) {
PP.set("free", "100");
PP.save();
}
});
}
});
i want to set the value of "free" for object "3Enwfu0QpQ" to 100, but it does not work.
