Im new to parse.com. Is it possible to update multiple objects/rows in Parse dashboard? Something like running update query in dashboard?
Parse.Object.update({...some filter...}, {...some values...})
Thanks
There's no SQL-like UPDATE
syntax. You would need to query for and iterate through the results, making the changes to each object. The each
method is provided on a Parse.Query
for processing every record that matches:
var query = new Parse.Query("MyClass");
query.equalTo("someField", "someValue");
query.each(function(obj) {
obj.set("otherField", "otherValue");
return obj.save();
}).then(function() {
// All objects updated.
}, function(err) {
console.log(err);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With