-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typeorm): Add support for soft deletes
- Loading branch information
1 parent
a67ac24
commit 2ab42fa
Showing
7 changed files
with
319 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/query-typeorm/__tests__/__fixtures__/test-soft-delete.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Column, Entity, PrimaryGeneratedColumn, DeleteDateColumn } from 'typeorm'; | ||
|
||
@Entity() | ||
export class TestSoftDeleteEntity { | ||
@PrimaryGeneratedColumn('uuid') | ||
testEntityPk!: string; | ||
|
||
@Column({ name: 'string_type' }) | ||
stringType!: string; | ||
|
||
@DeleteDateColumn({ name: 'deleted_at' }) | ||
deletedAt?: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { TypeOrmQueryService } from './services'; | ||
export { TypeOrmQueryService, TypeOrmQueryServiceOpts } from './services'; | ||
export { InjectTypeOrmQueryService, getTypeOrmQueryServiceKey } from './decorators'; | ||
export { NestjsQueryTypeOrmModule } from './module'; |
Oops, something went wrong.