Question · NestJS course · Module 3: TypeORM and Databases
Soft delete in TypeORM
How do you implement soft delete in TypeORM?
Answer options
- Using @DeleteColumn()
- Using @DeleteDateColumn() and the softRemove() method
- Soft delete is not supported in TypeORM
- Using @Column({ deleted: true })
You can check the correct answer by solving this task in the CodeWorlds game.