Skip to content

Apollo Server plugin for the GraphiQL Playground

License

Notifications You must be signed in to change notification settings

tcK1/apollo-graphiql-playground

Repository files navigation

apollo-graphiql-playground

npm

Plugin for using GraphiQL playground inside an Apollo Server.

Example

import { ApolloServerPluginLandingPageGraphiQLPlayground } from 'apollo-graphiql-playground'

const server = new ApolloServer({
  plugins: [
    ApolloServerPluginLandingPageGraphiQLPlayground({
      shouldPersistHeaders: true,
    })
  ],
})

Options

  • url? (default: /graphql): Which URL should the playground should use.
  • shouldPersistHeaders?: Toggles if the contents of the headers editor are persisted in storage.

Releases

No releases published