2.0.2 • Published 5 years ago

apollo-server-servie v2.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

Apollo Server Servie

NPM version NPM downloads Build status Test coverage

Production-ready Node.js GraphQL server for Servie.

Installation

npm install apollo-server-servie --save

Usage

Related: https://www.apollographql.com/docs/apollo-server/

import { compose } from "throwback";
import { get, all } from "servie-route";
import { graphqlServie, graphiqlServie } from "apollo-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

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago