Giter Club home page Giter Club logo

Comments (6)

alphamikle avatar alphamikle commented on July 25, 2024 1

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

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:

  1. Do not use custom repos and move custom repo` methods to service
  2. 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.

alphamikle avatar alphamikle commented on July 25, 2024 1

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.

ortonomy avatar ortonomy commented on July 25, 2024

@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.

alphamikle avatar alphamikle commented on July 25, 2024

@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.

ortonomy avatar ortonomy commented on July 25, 2024

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.

ortonomy avatar ortonomy commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.