npm.io
0.0.3 • Published 3 years ago

express-graphiql-explorer

Licence
MIT
Version
0.0.3
Deps
2
Size
4.1 MB
Vulns
0
Weekly
0

Use graphiql-explorer in your Express app.

Installation

npm install express-graphql-explorer

Usage

const graphiqlExplorer = require('express-graphiql-explorer')
const express = require('express')

const app = express()

app.use('/graphiql', graphiqlExplorer({
  graphqlEndpoint: '/graphql', 
  defaultQuery: `query MyQuery {}`
}))