graphql-playground-middleware-koa
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).
Last updated 2 months ago by acao .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install graphql-playground-middleware-koa 
SYNC missed versions from official npm registry.

graphql-playground-middleware-koa

Koa middleware to expose an endpoint for the GraphQL Playground IDE SECURITY NOTE: All versions of graphql-playground-koa until 1.6.15 or later have a security vulnerability when unsanitized user input is used while invoking koaPlayground(). Read more below

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

Security Notes

All versions before 1.6.15 were vulnerable to user-defined input to koaPlayground(). Read more in the security notes

Security Upgrade Steps

To fix the issue, you can upgrade to 1.6.15 or later. If you aren't able to upgrade, see the security notes for a workaround.

yarn: yarn add graphql-playground-koa@^1.6.15

npm: npm install --save graphql-playground-koa@^1.6.15

Current Tags

  • 1.3.0-beta.3                                ...           beta (3 years ago)
  • 1.6.17                                ...           latest (2 months ago)

38 Versions

  • 1.6.17                                ...           2 months ago
  • 1.6.15                                ...           2 months ago
  • 1.6.14                                ...           2 months ago
  • 1.6.13                                ...           4 months ago
  • 1.6.12                                ...           a year ago
  • 1.6.11                                ...           2 years ago
  • 1.6.10                                ...           2 years ago
  • 1.6.9                                ...           2 years ago
  • 1.6.8                                ...           2 years ago
  • 1.6.7                                ...           2 years ago
  • 1.6.6                                ...           2 years ago
  • 1.6.5                                ...           2 years ago
  • 1.6.4                                ...           2 years ago
  • 1.6.3                                ...           2 years ago
  • 1.6.2                                ...           2 years ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.8                                ...           3 years ago
  • 1.3.7                                ...           3 years ago
  • 1.3.6                                ...           3 years ago
  • 1.3.5                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.3.0-beta.3                                ...           3 years ago
  • 1.3.0-beta.2                                ...           3 years ago
  • 1.3.0-beta.1                                ...           3 years ago
  • 1.2.1-beta.7                                ...           3 years ago
  • 1.2.1-beta.4                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |