#Using Custom Repository get a RepositoryNotFoundError
34 messages · Page 1 of 1 (latest)
This is what i follow
This is my code
What's your Typeorm version?
- typeorm: 0.2.41
- @nestjs/typeorm: 9.0.1
Currently i know that the @EntityRepository does not work any more
But i dont have any alternation at the moment
@nestjs/typeorm: ^9.0.0 uses typeorm 0.3.x doesn't it?
to approach the custom Repository
Where can i read about that?
https://github.com/nestjs/typeorm/blob/master/package.json#L59 peerDep'ed at ^0.3.0, so, yeah, can't use anything older
oh yeah
@raw acorn How can i implement custom Repo with 0.3.10 typeorm
Do you have any article or so?
#1034657005169823794
I see your approach!
But your suggest will have a disadvantages is that you can not extends any of the repo but have to create one
for example: you can not have this.delete()
but instead you have to create a function inside the featureRepo to do something like
deleteOne(){ this.repo.deleteOne}
True, but why is this really a downside? You still have access to doing this.repo.delete()
I think it will take more time
Why? How would it take more time?
Like, how much more time do you think it would take to call this.repo.delete() vs this.delete()?
It's just accessing a class member, vs accessing a class method. It should be almost negligible, right? Maybe a millisecond
And that's at absolute worst case