본문 바로가기
Node.js/TypeORM

TypeOrm

by Ykie 2023. 4. 6.
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

'Node.js > TypeORM' 카테고리의 다른 글

One-to-one relations  (0) 2023.04.14

댓글