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

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

Package Sidebar

Install

Version

1.7.8

License

SEE LICENSE IN LICENSE

Unpacked Size

3.72 kB

Total Files

7

Last publish

Collaborators

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