Skip to content

eritikass/express-graphiql-middleware

Repository files navigation

express-graphiql-middleware

GraphiQL middleware for express. Initial code is extracted from Apollo server v1.

Installation

Add to your project

yarn add express-graphiql-middleware

# or (using npm)
npm i --save express-graphiql-middleware

Usage

import expressGraphiqlMiddleware from 'express-graphiql-middleware';

// ... app is express application

app.get('/graphiql', expressGraphiqlMiddleware({ endpointURL: '/graphql', rewriteURL: true }));

About

express-graphiql-middleware

Resources

Stars

Watchers

Forks

Packages

No packages published