Mongo.retryable_writes
You're seeing just the function
retryable_writes
, go back to Mongo module for more information.
In case of retryable writes are enabled, the keyword :write_counter
is added with the value of 1.
In other cases like
:retryable_writes
is false or nil:session
is nil:write_counter
is nil
the opts
is unchanged
Example
iex> Mongo.retryable_writes([retryable_writes: true], true) [retryable_writes: true, write_counter: 1]