Skip to content

Instantly share code, notes, and snippets.

@kuccello
Created December 15, 2020 00:53
Show Gist options
  • Save kuccello/81784b8478c548840d4dfaf9c5031a7e to your computer and use it in GitHub Desktop.
Save kuccello/81784b8478c548840d4dfaf9c5031a7e to your computer and use it in GitHub Desktop.
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { GraphqlConfigService } from './gql.config'
@Module({
imports: [
GraphQLModule.forRootAsync({
useClass: GraphqlConfigService,
})
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment