Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

graphql-playground-middleware-lambda-patched

graphcool15MIT1.10.1TypeScript support: included

GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).

graphql, graphiql, playground, graphcool, lambada

readme

graphql-playground-middleware-lambda

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

Installation

Using yarn:

yarn add graphql-playground-middleware-lambda

Or npm:

npm install graphql-playground-middleware-lambda --save

Usage

See full example in examples/basic.

minimal example:

const lambdaPlayground = require('graphql-playground-middleware-lambda').default

exports.handler = lambdaPlayground({
  endpoint: '/dev',
})

Security Notes

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

Security Upgrade Steps

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

yarn: yarn add graphql-playground-middleware-lambda@^1.7.17

npm: npm install --save graphql-playground-middleware-lambda@^1.7.17

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.7.23 (2020-10-20)

Note: Version bump only for package graphql-playground-middleware-lambda

1.7.22 (2020-09-15)

Note: Version bump only for package graphql-playground-middleware-lambda

1.7.21 (2020-08-30)

Note: Version bump only for package graphql-playground-middleware-lambda

1.7.20 (2020-08-30)

Note: Version bump only for package graphql-playground-middleware-lambda

1.7.18 (2020-06-07)

Bug Fixes

  • hide config element 😆 (#1224) (a7bdcaa)
  • rectify all versions and references (#1223) (239289b)
  • deps: [security] bump content (2ce2a37)
  • deps: [security] bump lodash (9b3c61a)
  • deps: update deps and toolchain, move back to using yarn… (#1191) (824c7a5)

1.8.10 (2019-02-23)

1.8.9 (2019-02-01)

1.8.7 (2019-01-28)

Bug Fixes

  • graphql 14: version bump via graphql-config (#861) (5ea711c)

1.6.2 (2018-07-06)

1.6.1 (2018-06-26)

1.5.9 (2018-05-25)

Bug Fixes

  • deps: Remove extension dependencies (72ce36c), closes #493
  • deps: update dependency graphql-playground-html to v1.5.2 (29a6065)
  • subscriptions: fixed subscriptions url normalization (f675517)

1.3.6 (2017-12-04)

1.3.5 (2017-12-04)

1.3.0 (2017-12-01)

1.2.0 (2017-11-24)