A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
Since there are some types from @types/cls-hooked that are re-exported by this package, @types/cls-hooked must be in dependencies rather than devDependencies. See this discussion for more info.
Since there are some types from
@types/cls-hooked
that are re-exported by this package,@types/cls-hooked
must be independencies
rather thandevDependencies
. See this discussion for more info.