1.0.1 • Published 5 years ago
graphql-gatsby-koa v1.0.1
graphql-gatsby-koa
Install
npm install --save graphql-gatsby-koa
Usage
const Koa = require('koa');
const graphqlGatsby = require('graphql-gatsby-koa'); // <-- add this line
const app = new Koa();
const config = undefined; // Optional
server.applyMiddleware({ app, config }); // <-- add this line
app.listen({ port: 3000 });