Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation/docs/persistence/typeorm/soft-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: Soft Delete
---

`TypeOrm` supports [soft deletes](https://typeorm.io/#/delete-query-builder/soft-delete). This feature does not delete records but instead updates the column decorated with `@DeletedDateColumn`.
`TypeOrm` supports [soft deletes](https://typeorm.io/#/delete-query-builder/soft-delete). This feature does not delete records but instead updates the column decorated with `@DeleteDateColumn`.

Before continuing it is recommended that you read the following.
* https://typeorm.io/#/decorator-reference/deletedatecolumn
* https://typeorm.io/#/delete-query-builder/soft-delete

## Setting up your entity.

Before enabling soft deletes you must add the DeletedDateColumn to your entity.
Before enabling soft deletes you must add the DeleteDateColumn to your entity.

```ts title="todo-item.entity.ts"
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
Expand Down