[FOLLOW QUESTION TO #4820]
I am trying to have two transactions and commit them. But if one of those two fails I don't want either of them to be executed basically I want to rollback it. And if it succeeds in committing both the transactions then close it.
try { Transaction t1 ~ udpating an edge property Transaction t2 ~ updating a vertex related to the edge in t1.(i.e. t2 is dependednt on t1) t1.commit() t2.commit() } catch() { rollback() //if one of the two transactions fails } finally { close() // close if successful in commiting both the transactions }
How can I do something like this in the DSE 6.8 graph?