Apollo Server plugin for the GraphiQL Playground
npm install apollo-graphiql-playgroundapollo-graphiql-playground
Plugin for using GraphiQL playground inside an Apollo Server.
``ts
import { ApolloServerPluginLandingPageGraphiQLPlayground } from 'apollo-graphiql-playground'
const server = new ApolloServer({
plugins: [
ApolloServerPluginLandingPageGraphiQLPlayground({
shouldPersistHeaders: true,
})
],
})
`
- url? (default: /graphql): Which URL should the playground should use.shouldPersistHeaders?`: Toggles if the contents of the headers editor are persisted in storage.
-