Skip to content

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

Notifications You must be signed in to change notification settings

zhuravlevma/typeorm-unit-of-work

Repository files navigation

Unit of work pattern for TypeORM

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

image