1.0.0 • Published 4 years ago
typeorm-transactional-next v1.0.0
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(...)
}
}
1.0.0
4 years ago