tkssharma / comments

0 stars 1 forks source link

nestjs-with-apollo-federation-for-microservices-part-3/ #3

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Nest js with apollo federation for building microservice architecture 🚀 Part-3 – @tkssharma | Tarun Sharma | My Profile

Building Graphql Service (User Auth API microservice) 🚀 🚀 You can check Part-1/2 of this Blog from here, In this example we will build…

https://tkssharma.com/nestjs-with-apollo-federation-for-microservices-part-3/

korovenko-tatyana commented 2 years ago

Hi! Can I inject AuthService into JwtAuthGuard? (in constructor)

I use AuthModule as global and as dynamic module. I want to inject AuthService into JwtAuthGuard as

constructor ( private authService: AuthService, private reflector: Reflector, ) { super() }

But if I see this.authService in console.log, I see only AuthService{}