use apollo studio as playground
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
"@nestjs/core": "^9.0.0",
|
"@nestjs/core": "^9.0.0",
|
||||||
"@nestjs/graphql": "^10.0.21",
|
"@nestjs/graphql": "^10.0.21",
|
||||||
"@nestjs/platform-express": "^9.0.0",
|
"@nestjs/platform-express": "^9.0.0",
|
||||||
|
"apollo-server-core": "^3.10.1",
|
||||||
"apollo-server-express": "^3.10.1",
|
"apollo-server-express": "^3.10.1",
|
||||||
"axios-cache-adapter": "^2.7.3",
|
"axios-cache-adapter": "^2.7.3",
|
||||||
"camelcase-object-deep": "^1.1.7",
|
"camelcase-object-deep": "^1.1.7",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { HttpModule } from '@nestjs/axios';
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { ConfigModule } from '@nestjs/config';
|
import { ConfigModule } from '@nestjs/config';
|
||||||
import { GraphQLModule } from '@nestjs/graphql';
|
import { GraphQLModule } from '@nestjs/graphql';
|
||||||
|
import { ApolloServerPluginLandingPageLocalDefault } from 'apollo-server-core';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { ThingResolver } from './thing/thing.resolver';
|
import { ThingResolver } from './thing/thing.resolver';
|
||||||
import { httpCacheAdapter } from './utils/httpCacheAdapter';
|
import { httpCacheAdapter } from './utils/httpCacheAdapter';
|
||||||
@@ -20,6 +21,8 @@ import { httpCacheAdapter } from './utils/httpCacheAdapter';
|
|||||||
GraphQLModule.forRoot<ApolloDriverConfig>({
|
GraphQLModule.forRoot<ApolloDriverConfig>({
|
||||||
driver: ApolloDriver,
|
driver: ApolloDriver,
|
||||||
autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
|
autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
|
||||||
|
playground: false,
|
||||||
|
plugins: [ApolloServerPluginLandingPageLocalDefault()],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
providers: [ThingResolver],
|
providers: [ThingResolver],
|
||||||
|
|||||||
Reference in New Issue
Block a user