I was wondering if there is CAS operation available in Dgraph. Here is one use case for CAS -
- Let’s say I look up the UID for a certain node in the database
- After lookup I use the UID to update/delete edges or literal values of the node
I want to be able to do this operation using multiple threads to achieve higher throughput. Now, while I am performing the second step, the UID may get deleted or values may be updated. Is there way to abort the transaction if for example, the version of the node is updated?