Comments (6)
I don't have that problem in front of me now, so I'm not concerned about finding a solution.
@alphamikle - you mean you don't see the problem when you use nest transact, or you don't have time?
Did you try some solutions from this typeorm/typeorm#9013?
yes, all of them. We get the
is not a function
error when usingwithTransaction
For now, I'm mostly focused on Flutter development and touch Node / Nest very rarely, and because of that, I don't write backend code and custom repos 😀
There are two options which I would use myself if I had to solve this problem:
- Do not use custom repos and move custom repo` methods to service
- Fork typeorm and add to there the old class-based API to restore functionality and would made a PR to their repo, and would gather as many people as possible to support this PR, so that the maintainers would have no choice but to leave support for this API as well.
from nest_transact.
You can close this @alphamikle - we've given up on nest transact unfortunately. Whilst the last update fixed the issue with circular dependencies, there is also a bug where repositories cannot be resolved with an injected service calls another service and that service has a repository.
Keep getting "Nest cannot resolve Repository element..." and can't find a way to resolve it. Resorted to a method on service to set the entity manager of an inject repository explicitly from outside the service before calling them. It's not elegant or great, but we need to move forward.
Sad to hear that, but if it is the best decision - so be it. Unfortunately, I have no time, for now, to fix all the problems which have nest-transact
users. Maybe someone someday will fix them, maybe it would be me. But not in the next several months 😔
from nest_transact.
@alphamikle - thanks for responding so quickly on the other PR that isn't built. Are you able to offer any ideas here
from nest_transact.
@ortonomy, you are welcome!
Did you try some solutions from this thread?
If there is no solution there, then just support this issue, maybe the typeorm developers will come to their senses.
Fortunately, I don't have that problem in front of me now, so I'm not concerned about finding a solution.
from nest_transact.
I don't have that problem in front of me now, so I'm not concerned about finding a solution.
@alphamikle - you mean you don't see the problem when you use nest transact, or you don't have time?
Did you try some solutions from this typeorm/typeorm#9013?
yes, all of them. We get the is not a function
error when using withTransaction
from nest_transact.
You can close this @alphamikle - we've given up on nest transact unfortunately. Whilst the last update fixed the issue with circular dependencies, there is also a bug where repositories cannot be resolved with an injected service calls another service and that service has a repository.
Keep getting "Nest cannot resolve Repository element..." and can't find a way to resolve it. Resorted to a method on service to set the entity manager of an inject repository explicitly from outside the service before calling them. It's not elegant or great, but we need to move forward.
from nest_transact.
Related Issues (16)
- Crash in `getArgument` HOT 3
- nest-transact doensn't seem to work well with custom repository HOT 4
- Question : Is `nest_transact` working with chain of services ? HOT 2
- Error in import of library HOT 7
- Cannot resolve ids of forwardRefs HOT 7
- Custom repository is not generated HOT 3
- QUESTION: Can I use this lib the same way with GrapqhQL resolvers instead of REST controllers? HOT 1
- Unable to read env variables from config service. HOT 5
- Install of this package HOT 1
- Is it possible to back port the "null dependency" fix (PR #14) into `v8.0.0` HOT 2
- Services get pulled in as Entity element in transaction HOT 1
- @InjectDataSource() does not work with service.withTransaction() HOT 2
- Providers doesn't exist in the current context HOT 14
- Hi @alphamikle Thanks for the awesome lib, When can we expect the major release for nestjs v10 HOT 1
- Applying unit test using nest-transact HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest_transact.