Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

graphql-playground-middleware-express

1.7.12 • Public • Published

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

Install

npm i graphql-playground-middleware-express

DownloadsWeekly Downloads

382,025

Version

1.7.12

License

MIT

Unpacked Size

3.09 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar