-
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 (#1321)
* feat(query-typegoose): Adds the ability to use discriminators Fixes #1320 * fix: removes package.json * Revert "fix: removes package.json" This reverts commit cc5d821. * fix: adds package-lock.json * fix: corrects linting issues adds missing added package * fix(query-typegoose): minor changes * fix(query-typegoose): fixes linting (again) * fix(query-typegoose): fixes conflict in package-lock.json Co-authored-by: Scott Molinari <scott.molinari@m8a.io>
- Loading branch information
Showing
9 changed files
with
1,784 additions
and
27 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
7 changes: 7 additions & 0 deletions
7
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,7 @@ | ||
import { prop } from '@typegoose/typegoose'; | ||
import { TestEntity } from './test.entity'; | ||
|
||
export class TestDiscriminatedEntity extends TestEntity { | ||
@prop({ required: true }) | ||
stringType2!: string; | ||
} |
Oops, something went wrong.