0.3.0 • Published 7 years ago
graphql-server-servie v0.3.0
GraphQL Server Servie
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