@insaner/graphql
v1.5.0
Published
This plugin bridges the reference `graphql-http` implementation into Insaner.
Downloads
2
Readme
GraphQL-HTTP bridge for Insaner
This plugin bridges the reference graphql-http
implementation into Insaner.
Installation:
npm install --save @insaner/graphql
Usage:
import { HttpServer } from 'insaner';
import { GraphQLHandler } from '@insaner/graphql';
const server = new HttpServer();
server.router.post(/^\/?graphql\/?$/, new GraphQLHandler({
schema: makeExecutableSchema({ ... }),
context: () => new Context(),
root: myRootObject,
}));