A nestjs module implementation of a client for Apollo(https://github.com/ctripcorp/apollo), the reliable configuration management system.
This module is registered in the global scope.
npm install nestjs-apollo-client // app.module.ts // refresh config every 10_000 milliseconds @Module({ imports: [ApolloModule.forRootAsync(new Meta("http://xxx", "appId"), 10_000)] }) export class AppModule {} // app.controller.ts @Controller() export class AppController { constructor(private readonly appService: AppService, private readonly _apolloService: ApolloService ) {} ... }