Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
failed API call should not mess with any table or record. And as we can see up there, we have an order object but no items associated with it. That’s actually where transactions come in. As soon as you create a transaction, nothing will be written permanently into the database unless you perform