Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in documentation regarding soft-delete #1592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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