Created
August 16, 2022 13:14
-
-
Save paramsinghvc/01bca4a8269dab2a6462439690a22e40 to your computer and use it in GitHub Desktop.
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'; | |
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; | |
@Module({ | |
imports: [ | |
GraphQLModule.forRoot<ApolloDriverConfig>({ | |
driver: ApolloDriver, | |
autoSchemaFile: join(process.cwd(), 'src/schema.gql'), | |
}), | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment