Skip to content

Commit

Permalink
docs: Updated type
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed May 26, 2022
1 parent be4bed6 commit 049953c
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 049953c

Please sign in to comment.