Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
COMMIT. If you do not COMMIT the transaction, it will be as if you never executed those queries. We only commit once we are sure all the write queries we are executing succeeds. If something goes wrong and you want to revert all the modifications you have performed in that API call (insert, update,