Serverless Plugin Graphiql

homepage icon https://github.com/bencooling/serverless-plugin-graphiql

Tracked

NPM Downloads Last Month
122
Issues
1
Stars
29
Forks
6
Watchers
29

Repo README Contents:

serverless-plugin-graphiql

Runs a local http server for graphiql and your graphql handler

Build Status Coverage Status serverless Npm Version

Usage

See /example directory for how easily it’s done!

Steps

  1. Create a lambda function named graphql that implements a graphql server
  2. Add serverless-plugin-graphiql to serverless plugins array
  3. Run sls graphiql command from root of serverless project
  4. Visit localhost:8000/graphql in your browser to use graphiql

About

Options

--function -f   function name in serverless.yml for graphql handler, Default: graphql
--port -p       port for local http server to listen on, Default: 8000

Requirements