Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
also 1. The second object is mouse and quantity is 3. Everything looks good so far. But what if the first write query succeeds so we can create the order object but the second query to insert the items fails. In that case, the API call will fail and an error response will be sent back to the user