Production-ready Node.js GraphQL server for Servie.
npm install apollo-server-servie --save
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` }))
]);
This project is written using TypeScript and publishes the definitions directly to NPM.
Apache 2.0