Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
delete queries), then you want to perform a ROLLBACK which reverts any modification that was made since the beginning of the transaction. As you might have guessed, we will start a transaction in POST /api/place-order endpoint and attempt to execute those two write queries within the transaction.