-
I am facing an issue where I am not able to update the context in a condition in the same transaction. Say for example, I have the following conditional tuple (taken from this example)
Now, I want to update the allowed_statuses to
Ideally I want to create a write request which deletes the first one and writes the second one in the same transaction. But, the write request is failing with the error "duplicate tuple in write". How can we go about this? I can think of 2 solutions.
Are there any better ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @velmohan We should process first the deletions and later the writes, so you don't get the error. For now, I'd go with Option 1.. |
Beta Was this translation helpful? Give feedback.
Hi @velmohan
We should process first the deletions and later the writes, so you don't get the error. For now, I'd go with Option 1..