update app module
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { GraphQLModule } from '@nestjs/graphql';
|
||||
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
|
||||
import { ApolloServerPluginLandingPageLocalDefault } from '@apollo/server/plugin/landingPage/default';
|
||||
|
||||
import { PrismaModule } from './prisma/prisma.module.js';
|
||||
import { ProfileModule } from './profile/profile.module.js';
|
||||
@@ -10,6 +11,12 @@ import { ProfileModule } from './profile/profile.module.js';
|
||||
GraphQLModule.forRoot<ApolloDriverConfig>({
|
||||
driver: ApolloDriver,
|
||||
autoSchemaFile: true,
|
||||
introspection: true,
|
||||
plugins: [
|
||||
ApolloServerPluginLandingPageLocalDefault({
|
||||
embed: true,
|
||||
}),
|
||||
],
|
||||
}),
|
||||
|
||||
PrismaModule,
|
||||
|
||||
Reference in New Issue
Block a user