Handling MongoDB Transaction Retries in TypeScript with `withTransaction` Helper
I'm writing helpers for handling mongodb transactions, and in my implementation of
The above works for me so far, but so does the following:
Btw. why do we still need to
Thanks!
withTransaction I would like to catch all errors or defects which indicate that the transaction could be retried. Does the follow look like a sane way to do this? The above works for me so far, but so does the following:
Btw. why do we still need to
squash to get the underlying error within find? Couldn't it just iterate over these underlying errors in the first place? Thanks!
