-
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(query-typegoose): Adds the ability to use discriminators
Fixes #1320
- Loading branch information
Showing
8 changed files
with
1,938 additions
and
255 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
packages/query-typegoose/__tests__/__fixtures__/test-discriminated.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,9 @@ | ||
import { prop } from '@typegoose/typegoose'; | ||
import { TestEntity } from './test.entity'; | ||
|
||
export class TestDiscriminatedEntity extends TestEntity { | ||
|
||
@prop({ required: true }) | ||
stringType2!: string; | ||
|
||
} |
Oops, something went wrong.