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

graphql-playground-middleware-express

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

Installation

Using yarn:

yarn add graphql-playground-middleware-express

Or npm:

npm install graphql-playground-middleware-express --save

Usage

See full example in examples/basic.

const express = require('express')
const expressPlayground = require('graphql-playground-middleware-express')
  .default

const app = express()

app.get('/playground', expressPlayground({ endpoint: '/graphql' }))

Security Notes

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

Security Upgrade Steps

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

yarn: yarn add graphql-playground-express@^1.7.16

npm: npm install --save graphql-playground-express@^1.7.16

Current Tags

  • 1.5.0-alpha.1                                ...           alpha (8 years ago)
  • 1.5.1-beta.1                                ...           beta (8 years ago)
  • 1.7.18                                ...           latest (5 years ago)

4 Versions

  • 1.7.23                                ...           4 years ago
  • 1.5.1-beta.1                                ...           8 years ago
  • 1.5.0-alpha.1                                ...           8 years ago
  • 1.7.18                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org