Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zhuravlevma/typeorm-unit-of-work

Clean architecture for nest.js with unit of work, typescript, clean architecture, domain model, aggregates, typeorm ⚡
https://github.com/zhuravlevma/typeorm-unit-of-work

aggregates architecture clean-architecture ddd ddd-architecture domain-driven-design domain-model example javascript nest nest-backend nestjs nestjs-backend node node-js nodejs typeorm typescript unit-of-work unit-of-work-pattern

Last synced: 4 days ago
JSON representation

Clean architecture for nest.js with unit of work, typescript, clean architecture, domain model, aggregates, typeorm ⚡

Awesome Lists containing this project

README

        

# Unit of work pattern for TypeORM

```typescript
return this.uow.transaction(async () => {
const updatedWh = await this.saveWhPort.saveWarehouse(warehouse);
await this.saveReport.save(report);
return updatedWh;
});
```

![image](https://github.com/zhuravlevma/prisma-unit-of-work/assets/44276887/6ebd10bd-fd88-42cb-8c7c-71a162283e04)