Closed abidon closed 1 month ago
TypeORM v3 support is now released in the alpha version of my fork together with all the fixes from here
Thanks TriPSs for keeping fixing the project bugs. The project owner should have transferred things over if he no longer continues to maintain this project, what a shame that it's a good project.
Any updates?
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today we used patch-package to patch
@nestjs-query/query-typeorm@0.30.0
for the project we are working on. This patch made our codebase work with TypeORM 0.3.Apparently, with TypeORM 0.3,
this.repo.manager.getRepository(relationMeta.type).target
return astring
instead of the entityclass
in some cases.typeFunction
,repository.target
equals theProjectEntity
classstring
,repository.target
is the'TodoEntity'
string, not classThis behaviour was introduced in TypeORM 0.3 and breaks nestjs-query, while TypeORM 0.2 always returned the entity class (at least in our use cases).
Here is the diff that solved our problem:
This issue body was partially generated by patch-package.