TypeOrm Inheritance support POC #280
lenybernard
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
I have never used Regarding your other points:
Never knew this existed in TypeORM, pretty cool. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've just made a proof of concept of TypeORM inheritance support with this library, I've made a PR here : lenybernard/nestjs-playground#1
Note
I've pushed a ZooModule with the proof of concept with nestjs-query and a "classic" way (without nestjs-query). You can test it by disabling ZooModule and re-enabling ZooClassicModule in app.module.ts.
It works "as is" and I think It could be interesting to add a section in the documentation, I could propose a PR if you want @TriPSs but it needs to be improved before, there is some weird things.
For me, there is the following things to fix :
@ObjectType
AND@InterfaceType
on the abstract objectdtype
to resolve types (in resolveType function), it works well in classic way (see example in ZooClassicModule)Thank you for the review !
Beta Was this translation helpful? Give feedback.
All reactions