We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5009542 commit aaa981dCopy full SHA for aaa981d
source/fundamentals/transactions.txt
@@ -170,6 +170,11 @@ if a callback you pass to the ``withTransaction()`` method returns the
170
document ``{ hello: "world" }``, then the ``withTransaction()`` method
171
also returns that document.
172
173
+.. important::
174
+
175
+ To avoid infinite looping errors, ensure that the callback you pass to
176
+ the ``withTransaction()`` method catches any errors that it raises.
177
178
When you use the Convenient Transaction API, you
179
can propagate return values from the callback as the return values of
180
the ``withTransaction()`` and ``withSession()`` methods to
0 commit comments