1.7.15 • Published 5 years ago

@apollographql/graphql-playground-middleware-express v1.7.15

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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