JSPM

  • Created
  • Published
  • Downloads 207767
  • Score
    100M100P100Q179620F
  • License MIT

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

Package Exports

  • graphql-playground-middleware-express
  • graphql-playground-middleware-express/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-playground-middleware-express) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

graphql-playground-middleware-express

Express middleware to expose an endpoint for the GraphQL Playground IDE

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