Created
June 17, 2019 11:24
-
-
Save chnirt/3f947e4b25c794be8e62a81b36ece93b to your computer and use it in GitHub Desktop.
NestJs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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