Open Omar-IDOUDAOUD opened 2 months ago
Hi, there is not the management of the retry writes in the driver at the moment. It is in my list, but, as I develop in my free time, it will take a while. The retryWrites option will be available only at client level, but will be defaulted to true.
This in an excerpt from the specs:
retryWrites
This boolean option determines whether retryable behavior will be applied to all supported write operations executed within the MongoClient. This option MUST default to true.
This option MUST NOT be configurable at the level of a database object, collection object, or at the level of an individual write operation.
Output: (The transaction failed because I changed the value in mongodb compass):
Is there any way to automate a transaction retry until it succeeds, like Firebase Firestore transactions ?