My problem is:
I built an external API that returns a list of data that I need process in bubble. This process could be: create new data, change a data or delete a data. For choose what action I need to to, the order that I read the JSON returned of API is mandatory. For exemple, imagine the following json api return (is an exemple, is not my real return, is for illustrate):
[
{
“id”: 1,
“name”: “João Silva”,
“action”: “create”
},
{
“id”: 2,
“name”: “João Silva”,
“newName”: “João da Silva”,
“action”: “change”
},
{
“id”: 3,
“name”: “João Silva”,
“action”: “delete”
}
]
Reading in order, at the final I have no data of “João Silva”, because the last action was delete.
When the order is not obey, tha last result could be “João da Silva” that is not the expected result