Save data using transaction

Hi, I am saving complex object with 5-10 childrens that have relations.

So I am saving parent, then saving child and saving relation between. And retry 5-10 times.

If I will get an errand or connection error I want to be able to remove half created object or handle it somehow, some kind of transaction.

Are there any ways to do it or what is the best practice for that?

Thanks, best, Nick.

Hi Nike,

There’s no transaction support for now. So you’ll have to come up with some way of detecting such uncompleted operations and cleaning up by yourself in your app code or in some handlers or timers (servercode).