parse.com offers a cloud-code section so that I can write javascript code to modify my parse.com database.
I have such a cloud code function that does multiple things - say, checks if a user exists, and if the user exists saves some data in a different table and then updates the user table to reference this new table - so I would have one parse.Query that checks if the user exists, and then several then
statements to run the update on the other table and get the user table to reference this new row.
In this scenario, am I meant to have several error functions (eg one for each parse.Query), or is it acceptable to have one error function in the very last then
promise?