You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An extension package for polymorphic relationship management, declaration and repository queries for [typeorm](https://typeorm.io/)
5
7
@@ -331,11 +333,10 @@ class UserEntity {
331
333
332
334
I think [Perf](https://github.com/Perf) might have some suggestions on how to improve things (sorry I have replied been mega busy!)
333
335
334
-
I've also used the class-transformer package so that my response objects have a different type value depending on the entityType. Could use the field tbh
335
-
336
336
## Nestjs
337
337
338
-
My methods work with basic hydration however the query builder needs some work. I've used a custom repository to handle all of the saving/updating/fetch. I only really use typeorm with nestjs hence I can use the repository anywhere in my project like so
338
+
If you're using nestjs, don't forgot to include your repository into the entities array in forFeature
339
+
339
340
```ts
340
341
@Module({
341
342
imports: [
@@ -349,28 +350,3 @@ My methods work with basic hydration however the query builder needs some work.
349
350
})
350
351
exportclassAdvertModule {}
351
352
```
352
-
353
-
Where `AdvertRepository` extends the `AbstractPolymorphicRepository`
0 commit comments