OptionalmaxOptionalbackoffCalled to compute a millisecond delay before the next attempt. Receives the
attempt number that just failed (1-indexed). Defaults to jittered exponential
backoff: Math.random() * (1 << attempt) (0–2 ms after 1, 0–4 ms after 2, …).
Return 0 (or pass a function that does) to disable backoff.
OptionalallowWhen the row is deleted between the initial read and the write, patchWithRetry
normally aborts with PatchConflictError to avoid silently resurrecting a
deleted document. Set to true to treat the post-delete state as a fresh
insert (re-running update(null) and inserting the result).
Default: false.
Max retry attempts on version conflict. Defaults to 5.