Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
specific order. We first generate a random order id, create the order and then create the items under it. However, creating both order object and items will require at least 2 queries. That’s why we need transaction for this endpoint. If you look carefully at orders controller, we have annotated