Atomic blocks
Options
Leo Med
Member ✭
Hey!
When I have a sequence of queries for an endpoint(5 queries for example), when the third query fails and then the request fails, I would want the first and the second queries to be rollbacked to their initial values like for atomic blocks with sql.
Is that available? If it is, how can I setup it up. If it is not, can you please provide any workaround solution ?
Thanks
When I have a sequence of queries for an endpoint(5 queries for example), when the third query fails and then the request fails, I would want the first and the second queries to be rollbacked to their initial values like for atomic blocks with sql.
Is that available? If it is, how can I setup it up. If it is not, can you please provide any workaround solution ?
Thanks
Comments
-
I think you are looking for a database transaction to wrap your writes. https://docs.xano.com/working-with-data/functions/database-requests/database-transaction?q=Transaction
-
Thank you 👌
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback