Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
manager is used to wrap everything in a transaction. That way, the 2 queries we send in create order (first: createOrder, second: createItems) will be wrapped in a transaction. There’s one thing to note here. It is not possible to inject a service from another module unless you import the whole