commitTransaction

suspend fun commitTransaction()

Commit a transaction in the context of this session. A transaction can only be committed if one has first been started.

Return

an empty publisher that indicates when the operation has completed

See also

MongoException.UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL