Node.js/TypeORM2 One-to-one relations A가 오로지 하나의 B만 포함한다! B역시 오직 하나의 A만 포함한다. https://typeorm.io/one-to-one-relations One-to-one is a relation where A contains only one instance of B, and B contains only one instance of A. Let's take for example User and Profile entities. User can have only a single profile, and a single profile is owned by only a single user. // Profile import { Entity, PrimaryGeneratedColumn, Column } from "typeor.. 2023. 4. 14. TypeOrm https://typeorm.io/listeners-and-subscribers Entity Listeners and Subscribers Entity Listeners and Subscribers What is an Entity Listener @AfterLoad @BeforeInsert @AfterInsert @BeforeUpdate @AfterUpdate @BeforeRemove @AfterRemove @BeforeSoftRemove @AfterSoftRemove @BeforeRecover @AfterRecover What is a Subscriber Event Object # What is an Entity Listener Any of your entities can have methods wit.. 2023. 4. 6. 이전 1 다음 728x90