graphql-server-servie
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

GraphQL Server Servie

NPM version NPM downloads Build status Test coverage Greenkeeper badge

Production-ready Node.js GraphQL server for Servie.

Installation

npm install graphql-server-servie --save

Usage

Related: http://dev.apollodata.com/tools/graphql-server/index.html

import { compose } from 'throwback'
import { get, all } from 'servie-route'
import { graphqlServie, graphiqlServie } from 'graphql-server-servie'
 
const app = compose([
  all('/graphql', graphqlServie({ schema })),
  get('/graphiql', graphiqlServie({ endpointURL: `./graphql` }))
])

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

Apache 2.0

/graphql-server-servie/

    Package Sidebar

    Install

    npm i graphql-server-servie

    Weekly Downloads

    7

    Version

    0.3.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • blakeembrey