@keystone-alpha/app-graphql-playground

KeystoneJS GraphQL Playground App.

All packages in the @keystone-alpha namespace are now available in the @keystonejs namespace, starting at version 5.0.0. To upgrade, update package.json to point to "@keystonejs/app-graphql-playground": "^5.0.0" and update any require/import statements in your code.
Last updated a year ago by timl .
MIT · Original npm · Tarball · package.json
$ cnpm install @keystone-alpha/app-graphql-playground 
SYNC missed versions from official npm registry.

GraphQL Playground App

A KeystoneJS App that creates an Apollo GraphQL playground.

Usage

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

// Ensure that the GraphQLApp and GraphQLAppPlayground are referring to the same endpoint
const apiPath = '/admin/api';
module.exports = {
  new Keystone(),
  apps: [
    // This should come before the GraphQLApp, as it sets up the dev query middleware
    new GraphQLAppPlayground({ 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

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1 [deprecated]           ...           a year ago
  • 1.0.0 [deprecated]           ...           a year ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |