withTransaction
Also written: session.withTransaction()
A session method that starts a transaction, runs your async function and commits when it finishes. If the function throws, it undoes every write and rethrows.
Also written: session.withTransaction()
A session method that starts a transaction, runs your async function and commits when it finishes. If the function throws, it undoes every write and rethrows.