We’re using the dgraph-js-http client to communicate with Dgraph, and I’m interested in understanding how best to handle aborted transactions. The documentation for committing a transaction says:
An error will be returned if other transactions running concurrently modify the same data that was modified in this transaction.
That’s a pretty broad statement, and maybe I haven’t put enough thought into this, but can anyone give me a simple yet concrete example of how to force two concurrent transactions to modify the same data? I want to make sure we’re handling this in our app, ideally where I force it to happen in my integration tests.