I want to use NestJS ConfigService inside my TypeOrmModule.forFeature to retrieve some vars inside the .env file. How can I do it? When creating a connection I use the forRootAsync but I can't find anything like it for configurations
My Module:
@Module({
imports: [
TypeOrmModule.forFeature([User, Faker]),
TypeOrmModule.forFeature([User], ConnectionName.Secondary), <== use ConfigService here
RedisModule,
],
controllers: [UsersController],
providers: [UsersService],
exports: [UsersService],
})
export class UsersModule {}