Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transaction management in Parse.com

Does parse.com support transactions ? I am trying to insert new rows into two different tables. If an error occurs during an insert into one of the table then the whole transaction needs to be rolled back.

like image 960
Raghu Raj Avatar asked Mar 18 '26 11:03

Raghu Raj


1 Answers

No, it doesn't.

You could handle the situation in Cloud Code and if one of save operations fail then perform delete of already saved object.

For cloud code doc see: https://www.parse.com/docs/cloud_code_guide#functions

like image 197
tstechly Avatar answered Mar 24 '26 18:03

tstechly