0.2.0 • Published 4 years ago
@benzene/server v0.2.0
@benzene/server
Fast and simple GraphQL Server for Node.js
const { Benzene, httpHandler } = require('@benzene/server');
const { createServer } = require('http');
const GQL = new Benzene({ schema });
createServer(httpHandler(GQL, options)).listen(3000);
// Or Express.js and friends
const express = require('express');
app.all(httpHandler(GQL, options)).listen(3000);
Documentation is available at hoangvvo.github.io/benzene/#/server