diff --git a/source/fundamentals/transactions.txt b/source/fundamentals/transactions.txt index ad63ce50..9d37c7a4 100644 --- a/source/fundamentals/transactions.txt +++ b/source/fundamentals/transactions.txt @@ -170,6 +170,11 @@ if a callback you pass to the ``withTransaction()`` method returns the document ``{ hello: "world" }``, then the ``withTransaction()`` method also returns that document. +.. important:: + + To avoid infinite looping errors, ensure that the callback you pass to + the ``withTransaction()`` method catches any errors that it raises. + When you use the Convenient Transaction API, you can propagate return values from the callback as the return values of the ``withTransaction()`` and ``withSession()`` methods to