Hi,
the unset method is working on parse.com but it is not working on self hosting.
if the database stored title = abc, the value is unchanged still be abc after the following code is ran.
var query = new Parse.Query("Comment");
query.equalTo("objectId", request.params.objectId);
query.first({
success: function(object) {
object.unset('title');
return object.save(); },
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
Its possible maybe save is failing? You should pass it success, error, and capture the result.
I had tried to modify other fields at the same time, the name field is saved but title is remained the previous value.
var query = new Parse.Query("Comment");
query.equalTo("objectId", request.params.objectId);
query.first({
success: function(object) {
object.set('name', 'abc');
object.unset('title');
return object.save(); },
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
Sorry, it's my fault
i checked that the problem from the Parse dashboard, and the value is updated on database
@osricwong Hi I have a exactly same problem.. What is your fault? could you let me know?
Hi, @ShawnBaek
sorry for miss your message
In my situation, all values are updated on database successfully and the Parse dashboard only cannot display the up-to-dated information on screen,
I just refresh my browser / press Enter on browser address bar to refresh. :)
Damn. Yeah wasted a good chunk of time on this.
Confirming the issue is Parse Browser - the provided "refresh" button does not update the unset field.
Refreshing the WEB browser updates the deleted field. Far out.
Same here! Spent half day on this analyzing why it does not unset any objects/values.
Did you open the issue on the dashboard repository?
No. I was considering it though. First finishing my implementation/current task ;)
Edit: I am also not on the latest release of the dashboard yet. So I need to upgrade first, to check if issue still exists.
Most helpful comment
Hi, @ShawnBaek
sorry for miss your message
In my situation, all values are updated on database successfully and the Parse dashboard only cannot display the up-to-dated information on screen,
I just refresh my browser / press
Enteron browser address bar to refresh. :)