Skip to content

Commit 1cf8f1a

Browse files
Update quick-start.md
1 parent 23aca50 commit 1cf8f1a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/graphql/quick-start.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,26 @@ definitionsFactory.generate({
202202
});
203203
```
204204

205+
#### Apollo Sandbox
206+
207+
To use [Apollo Sandbox](https://www.apollographql.com/blog/announcement/platform/apollo-sandbox-an-open-graphql-ide-for-local-development/) instead of the `graphql-playground` as a GraphQL IDE for local development, use the following configuration:
208+
209+
```typescript
210+
import { Module } from '@nestjs/common';
211+
import { GraphQLModule } from '@nestjs/graphql';
212+
import { ApolloServerPluginLandingPageLocalDefault } from 'apollo-server-core';
213+
214+
@Module({
215+
imports: [
216+
GraphQLModule.forRoot({
217+
playground: false,
218+
plugins: [ApolloServerPluginLandingPageLocalDefault()],
219+
}),
220+
],
221+
})
222+
export class AppModule {}
223+
```
224+
205225
#### Example
206226

207227
A fully working schema first sample is available [here](https://github.com/nestjs/nest/tree/master/sample/12-graphql-schema-first).

0 commit comments

Comments
 (0)