Hello
To create new object A with one to one relationship to another object B
I do the following:
Add A
Get the map of A
Set relationship of A to B and save
Is there a way I can add A with its relationship in one shot so I don’t have to do 2 operations (ie save then set relationship). I am just concerned that I add A and something wrong happens so I am left with A without a child relation.
@snakeeyes if your goal is to create an object and to set relation in one Backendless API call then there’s no way it can be done. If it’s a convenience issue - then you may look into approach Oleg suggested above
Thank you. It is more than convinience. It is incase one operation failed which will result in data of one successful operation which makes the data corrupted. Maybe you guys can consider implementing “roll back option” like in SQL where you can commit everything once all operation succeeded.