-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve providers - typeorm typedi integration #243
Comments
GraphQL-Modules has built-in dependency injection system, so you might not need any other dependency injection system/logic. If you don’t provide Repository in any module inside application, this error is expected. So, could you share more details or reproduce a repo? |
@itxuye can you share what did you end up doing? |
@Urigo Finally , i didn't use typeorm-typedi-extentions , https://github.com/typeorm/typeorm-typedi-extensions , because i can't register a 3rd IOC container in graphql-modules. |
You can export DI container of GraphQLModule using injector property, then pass it to TypeORM using useContainer function. |
@ardatan Ok, thanks, i will try it . |
if it's ok, I'll keep it open until we'll have an example somewhere that people can have a look at |
Since the WhatsApp Clone was released today, we could probably close this issue now. |
@Cassianokunsch were you able to solve it? |
How to use graphql-modules with typeorm and typedi ,now I got some problems .
The text was updated successfully, but these errors were encountered: