typeorm-transactional-next
v1.0.0
Published
typeorm-transactional-next
Downloads
2
Readme
How to use
import { Transaction, useTransaction } from 'lb-typeorm-transactional'
export class UserService {
@Transaction()
async updateInfo() {
await db.update(...)
await this.photoService.updatePhoto()
}
}
export class PhotoService {
@Transaction()
async updatePhoto(){
await db.update(...)
}
}