Node.js/TypeORM
TypeOrm
Ykie
2023. 4. 6. 14:16
728x90
https://typeorm.io/listeners-and-subscribers
Entity Listeners and Subscribers
What is an Entity Listener
Any of your entities can have methods with custom logic that listen to specific entity events. You must mark those methods with special decorators depending on what event you want to listen to.
Note: Do not make any database calls within a listener, opt for subscribers instead.
728x90