@insaner/graphql
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

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,
}));

Readme

Keywords

none

Package Sidebar

Install

npm i @insaner/graphql

Weekly Downloads

0

Version

1.5.0

License

MIT

Unpacked Size

7.04 kB

Total Files

8

Last publish

Collaborators

  • jahudka