@keystone-alpha/app-graphql

KeystoneJS GraphQL 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": "^5.0.0" and update any require/import statements in your code.
Last updated a year ago by jesstelford .
MIT · Original npm · Tarball · package.json
$ cnpm install @keystone-alpha/app-graphql 
SYNC missed versions from official npm registry.

GraphQL App

A KeystoneJS App that creates a GraphQL API and Apollo GraphQL playground.

For information about writing queries and mutations for KeystoneJS see the Introduction to KeystoneJS' GraphQL API.

Usage

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

module.exports = {
  new Keystone(),
  apps: [
    new GraphQLApp({
      // All config keys are optional. Default values are shown here for completeness.
        apiPath: '/admin/api',
        graphiqlPath: '/admin/graphiql',
        schemaName: 'admin',
        apollo: {},
    }),
    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
schemaName String admin Change the graphQL schema name (not recommended)
apollo Object {} Options passed directly to Apollo Server

Current Tags

  • 8.2.1                                ...           latest (a year ago)

11 Versions

  • 8.2.1 [deprecated]           ...           a year ago
  • 8.2.0 [deprecated]           ...           a year ago
  • 8.1.1 [deprecated]           ...           a year ago
  • 8.1.0 [deprecated]           ...           a year ago
  • 8.0.0 [deprecated]           ...           a year ago
  • 7.0.0 [deprecated]           ...           a year ago
  • 6.3.1 [deprecated]           ...           a year ago
  • 6.3.0 [deprecated]           ...           a year ago
  • 6.2.0 [deprecated]           ...           a year ago
  • 6.1.0 [deprecated]           ...           a year ago
  • 6.0.0 [deprecated]           ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |