Inject nestjs service from another module

后端 未结 3 1898
青春惊慌失措
青春惊慌失措 2020-12-09 07:47

I\'ve got a PlayersModule and an ItemsModule.

I want to use the ItemsService in the PlayersService.

When

3条回答
  •  生来不讨喜
    2020-12-09 08:08

    I believe that you faced the same problem i had. My scenario was 2 sibling custom modules (user, auth) that needed to use each other's services. I used circular DI to solve it. please check this link

    Let me know whether if it solved your issue, maybe I can advise you further.

提交回复
热议问题