1.6.14 • Published 5 years ago

@apollographql/graphql-playground-middleware-koa v1.6.14

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

graphql-playground-middleware-koa

Koa middleware to expose an endpoint for the GraphQL Playground IDE

Installation

Using yarn:

yarn add graphql-playground-middleware-koa

Or npm:

npm install graphql-playground-middleware-koa --save

Usage

See full example in examples/basic.

const koa = require('koa')
const koaRouter = require('koa-router')
const koaPlayground = require('graphql-playground-middleware-koa')

const app = new koa()
const router = new koaRouter()

router.all('/playground', koaPlayground({ endpoint: '/graphql' }))