NestJS
├─src
│ ├─app.module.ts
│ ├─main.ts
├─test
│ └─...test files
└─eslint,env,prettier etc config files
Last active
February 16, 2021 08:17
-
-
Save DillonMemo/497d121e42855e6d3cbd0935f42d09df to your computer and use it in GitHub Desktop.
NestJS Configure Practice
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 { GraphQLModule } from '@nestjs/graphql'; | |
@Module({ | |
imports: [ | |
GraphQLModule.forRoot({ | |
autoSchemaFile: true, // == autoSchemaFile: join(process.cwd(), 'src/schema.gql'), | |
}), | |
], | |
controllers: [], | |
providers: [], | |
}) | |
//test | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment