Skip to content

Instantly share code, notes, and snippets.

@paramsinghvc
Created August 16, 2022 13:14
Show Gist options
  • Save paramsinghvc/01bca4a8269dab2a6462439690a22e40 to your computer and use it in GitHub Desktop.
Save paramsinghvc/01bca4a8269dab2a6462439690a22e40 to your computer and use it in GitHub Desktop.
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