Im building a delete button on my app that erase multiple rows from multiple tables, its looks like this:
The problem is that sometimes this tables doesnt have data in it, so when i run the action, some api calls work, but when they meet with empty data, the api returns an error, and the next api calls (that came after this one) stop working.
The way that im building this json it looks like this:
i build the simplejson part of it:
Next i append every last json to a mayor one, separated with “,”, like this:
And then i put all those jsons on mutations, like this:
And finally i run that whole JSON with the corresponding headers, api-keys, etc.
how can i fix this?