Using Transactions
Item Service Transactions#
When creating large amounts of data it is often advantageous to use transactions. The Item Service supports a {transactional: true} option to interact with the Item Service utilizing transactions. If anything with the transaction fails, none of the work the transaction did will be committed to the Item Service, allowing you to have confidence in the state of data creation, updates, and deletes.
Hands On#
- Download INT05 - Item Service Transactions.zip and extract it to your disk
- Open 'INT05 - Transactions.mjs' in your IDE
- Follow the steps in the file