Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
test data manually. In items repository, we have only one method to create multiple items that belong to a single order. By using map function, we take the dto and parse it into an array of properly formatted item objects and save them all in the database. And here’s how CreateItemDto looks like: