Closed TarekkMA closed 3 months ago
The question on SO is answered already.
Your problem is unrelated to the ODM. The problem is that you have runTransaction
return the Transaction object.
That's not allowed. The Transaction object shouldn't be used outside of runTransaction
.
You should instead put your transaction logic inside runTransaction
.
If I want to use
transactionUpdate()
method, I need to provide aTransaction
object, but there is no documentation on how to create this object. For example, this code doesn't compile:I can create a
Transaction
object, usingbut using this object doesn't work in the first code. Here's the question on StackOverflow.