Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
by sending an http request to see if the queries are actually run inside a transaction. You can use any http client for that purpose. We send the following request POST http://localhost/orders Content-Type: application/json [ { "productId": 1, "quantity": 3 }, { "productId": 2, "quantity": 5 } ]