graphql-playground-middleware-express
TypeScript icon, indicating that this package has built-in type declarations

1.7.7 • 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')

const app = express()

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

Package Sidebar

Install

Version

1.7.7

License

SEE LICENSE IN LICENSE

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • schickling
  • timsuchanek
  • jasonkuhrt
  • acao
  • divyenduz
  • huvik