File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -396,3 +396,4 @@ Temporary Items
396
396
# Local
397
397
.env
398
398
dist
399
+ ** /schema.gql
Original file line number Diff line number Diff line change
1
+ import { join } from 'path' ;
1
2
import { Module } from '@nestjs/common' ;
2
3
import { ConfigModule } from '@nestjs/config' ;
3
- import { AppController } from './app.controller' ;
4
+ import { GraphQLModule } from '@nestjs/graphql' ;
5
+ import { ApolloDriver , ApolloDriverConfig } from '@nestjs/apollo' ;
4
6
import config from './config' ;
5
7
8
+ import { AppController } from './app.controller' ;
9
+ import { SampleModule } from './sample/sample.module' ;
6
10
@Module ( {
7
11
controllers : [ AppController ] ,
8
12
imports : [
9
13
ConfigModule . forRoot ( { isGlobal : true , load : [ config ] } ) ,
14
+ GraphQLModule . forRoot < ApolloDriverConfig > ( {
15
+ driver : ApolloDriver ,
16
+ autoSchemaFile : join ( process . cwd ( ) , 'src/schema.gql' ) ,
17
+ debug : true ,
18
+ playground : true ,
19
+ } ) ,
20
+ SampleModule ,
10
21
] ,
11
22
} )
12
23
export class AppModule { }
You can’t perform that action at this time.
0 commit comments