Skip to content

Example issue with configService? #81

@crea-vis-art

Description

@crea-vis-art

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions