Recommended way to handle write conflicts inside transactions?

That was just a snippet of my code, I actually do update multiple documents in different collections as part of the transaction… I guess I’ll need to remove the transaction anyway?