TypeORM cascade option: cascade, onDelete, onUpdate
This is my conclusion of looking into it: The cascade option does not affect the database column constraints, and I believe is used by TypeORM only in evaluating how to save entity relations to the database. We can define entities like this: @Entity() class Book extends BaseEntity { @ManyToOne(() => Author, (author) => author.books, { … Read more