(session: ClientSession | undefined, cmd: Document)
| 573 | } |
| 574 | |
| 575 | function inActiveTransaction(session: ClientSession | undefined, cmd: Document) { |
| 576 | return session && session.inTransaction() && !isTransactionCommand(cmd); |
| 577 | } |
| 578 | |
| 579 | /** this checks the retryWrites option passed down from the client options, it |
| 580 | * does not check if the server supports retryable writes */ |
no test coverage detected