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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.5.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.5.0
    0
  • 1.4.0
    0
  • 1.3.0
    0

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