Skip to content

Instantly share code, notes, and snippets.

@chnirt
Created June 17, 2019 11:24
Show Gist options
  • Save chnirt/3f947e4b25c794be8e62a81b36ece93b to your computer and use it in GitHub Desktop.
Save chnirt/3f947e4b25c794be8e62a81b36ece93b to your computer and use it in GitHub Desktop.
NestJs
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { GraphQLModule } from '@nestjs/graphql';
import { join } from 'path';
@Module({
imports: [
GraphQLModule.forRoot({
typePaths: ['./**/*.graphql'],
playground: true
}),
],
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