Change names of repository injection tokens to prevent overlapping with @nestjs/typeorm #106
-
Hello. During the migration from TypeORM to MikroORM I faced a very strange issue when I injected a MikroORM repository but got an exception from the code of a TypeORM repository. My digging ends up with the finding that both Having the assumption that MikroORM is a popular replacement for a TypeORM and also that it's not that easy to replace ORM in the whole project at a time it can be a pretty popular issue. Long story short: can you please consider changing the injection tokens for MikroORM repositories? BTW using Symbol as an injection token would have prevented this issue but I'm not sure if it's can be used for the minimal supported Node.js version. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are the first one reporting it, so probably not that popular :]
Yeah, I guess this won't hurt anybody, but I will keep this for v6 as it might be seen as breaking. |
Beta Was this translation helpful? Give feedback.
You are the first one reporting it, so probably not that popular :]
Yeah, I guess this won't hurt anybody, but I will keep this for v6 as it might be seen as breaking.