Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
queries to the database. One query will insert order information into the orders table to create an order object and the other one will insert the item/product information and that query is essential to store what items were bought in that order. If both of these queries work properly, we are lucky