Click in order · NestJS course · Module 3: TypeORM and Databases
Soft delete with repository
Arrange the elements of soft delete using a repository in the correct order:
Items to click
- // Record now has deletedAt != null
- const legionary = await this.repo.findOneBy({ id });
- await this.repo.softRemove(legionary);
You can check the correct answer by solving this task in the CodeWorlds game.