Replies: 1 comment
-
Since there is no answer to this, I just figured out that it would be better to have some sort of dependency injection containers like inversify or tsyringe, neither of which I have idea what their usage is, and how to integrate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am trying to use MikroORM with NextJS. So far, I was able to make it work with reference from the following example - https://github.com/tonitrus888/next-mikro-orm-psql/. However, the issue with this is that it uses
em.fork()
. I want to make it work withRequestContext.enter()
. I am assuming that this would require some sort of dependency injection container? How do I go about with this?Additional information
Example
https://codeberg.org/Ashvith/url-shortener/src/branch/switch-to-request-context
Beta Was this translation helpful? Give feedback.
All reactions