mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
|
|
import { Module } from '@nestjs/common';
|
|
import { GraphQLModule } from '@nestjs/graphql';
|
|
import { join } from 'path';
|
|
import { RecipesModule } from './recipes/recipes.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
RecipesModule,
|
|
GraphQLModule.forRoot<ApolloDriverConfig>({
|
|
driver: ApolloDriver,
|
|
debug: false,
|
|
installSubscriptionHandlers: true,
|
|
autoSchemaFile: join(
|
|
process.cwd(),
|
|
'integration/graphql-code-first/schema.gql',
|
|
),
|
|
}),
|
|
],
|
|
})
|
|
export class AppModule {}
|