nestjs-rmq icon indicating copy to clipboard operation
nestjs-rmq copied to clipboard

Example issue with configService?

Open crea-vis-art opened this issue 8 months ago • 2 comments

Hi, I am new at NestJs. Is this example correct? I have no Idea how to get the "configService" as described in the example. I only can find examples with use of "useFactory".

`import { RMQModule } from 'nestjs-rmq';

@Module({ imports: [ RMQModule.forRoot({ exchangeName: configService.get('AMQP_EXCHANGE'), connections: [ { login: configService.get('AMQP_LOGIN'), password: configService.get('AMQP_PASSWORD'), host: configService.get('AMQP_HOST'), }, ], }), ], }) export class AppModule {}`

Sorry but don't get the code formating in the github editor

crea-vis-art avatar Jun 07 '24 12:06 crea-vis-art