Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ⚡
- Host: GitHub
- URL: https://github.com/zhuravlevma/typeorm-unit-of-work
- Owner: zhuravlevma
- Created: 2024-01-04T17:55:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-05T10:52:00.000Z (5 days ago)
- Last Synced: 2025-01-05T11:27:36.324Z (5 days ago)
- Topics: 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
- Language: TypeScript
- Homepage:
- Size: 132 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)