This package has been deprecated

Author message:

Do not use this package directly. It is affected by security vulernability from its upstream fork. Please use `graphql-playground-middleware-koa` directly, which has resolved the vulnerability in more recent versions. See https://git.io/JfSaF for details on impacted versions and the vulnerability.

@apollographql/graphql-playground-middleware-koa
TypeScript icon, indicating that this package has built-in type declarations

1.6.14 • Public • Published

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' }))

Package Sidebar

Install

npm i @apollographql/graphql-playground-middleware-koa

Weekly Downloads

2

Version

1.6.14

License

MIT

Unpacked Size

6.35 kB

Total Files

7

Last publish

Collaborators

  • glasser
  • trevor.scheer