return this.unitOfWork.runInTransaction(async (tx) => {
const updatedAggregate1 = await this.repo.saveAggregate1(entity, { tx });
await this.repo2.saveAggregate2(entity, { tx });
return updatedAggregate1;
});
-
Notifications
You must be signed in to change notification settings - Fork 2
DDD, Unit of work pattern for Typescript, Nest.js, Prisma ⚡
License
zhuravlevma/prisma-unit-of-work
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
DDD, Unit of work pattern for Typescript, Nest.js, Prisma ⚡
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published