0 votes
in Azure Cosmos DB by
How Do I Perform Transactions In The Documentdb Api?

1 Answer

0 votes
by

The DocumentDB API helps language-included transactions through JavaScript-saved techniques and triggers. All database operations internal scripts are finished under image isolation. If it is a single-partition collection, the execution is scoped to the gathering. If the collection is partitioned, the execution is scoped to files with the same partition-key value inside the series. 

A picture of the document versions (ETags) is taken on the start of the transaction and devoted best if the script succeeds. If the JavaScript throws an errors, the transaction is rolled back.

Related questions

0 votes
asked Apr 28, 2022 in Azure Cosmos DB by sharadyadav1986
0 votes
asked May 1, 2022 in Azure Cosmos DB by sharadyadav1986
...