@koikorn/app-graphql-playground

5.1.4 • Public • Published

GraphQL Playground App

View changelog

A KeystoneJS App that creates an Apollo GraphQL playground.

Usage

const { Keystone } = require('@koikorn/keystone');
const { GraphQLApp } = require('@koikorn/app-graphql');
const { GraphQLPlaygroundApp } = require('@koikorn/app-graphql-playground');
const { AdminUIApp } = require('@koikorn/app-admin-ui');

// Ensure that the GraphQLApp and GraphQLAppPlayground are referring to the same endpoint
const apiPath = '/admin/api';

module.exports = {
  keystone: new Keystone(),
  apps: [
    // This should come before the GraphQLApp, as it sets up the dev query middleware
    new GraphQLPlaygroundApp({ apiPath })
    // Disable the default playground on this app
    new GraphQLApp({ apiPath, graphiqlPath: undefined }),
    new AdminUIApp()
  ],
};

Config

Option Type Default Description
apiPath String /admin/api Change the API path
graphiqlPath String /admin/graphiql Change the Apollo GraphQL playground path

/@koikorn/app-graphql-playground/

    Package Sidebar

    Install

    npm i @koikorn/app-graphql-playground

    Weekly Downloads

    0

    Version

    5.1.4

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    5

    Last publish

    Collaborators

    • lorenhaim