DEV Community

Himi Kansal
Himi Kansal

Posted on

(Nest JS)How to get values from custom config service in module.ts class to register with database

  1. I have created a Utility package of config manager service

Image description

  1. Then, I have created another utility package to handle DB operations

Here is DB Module file

Image description

Here is DB Service file

Image description

  1. Then I have created my final project and injected config manager service in app.module.ts

Image description

Then, I have registered DBModule in feature.module.ts

Image description

  1. Now, when I am running the application. I am unable to get actual values from config service. instead getting configmanagerservice class

Image description

Please help

Top comments (0)