Creates http endpoints for graphql server with graphiql
Runs a local http server for graphiql and your graphql handler
See /example
directory for how easily it's done!
Steps
serverless-plugin-graphiql
to serverless plugins arraysls graphiql
command from root of serverless projectlocalhost:8000/graphql
in your browser to use graphiqlGET /graphql
POST /graphql
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query": "{ hello }"}' \
localhost:8000/graphql
--function -f function name in serverless.yml for graphql handler, Default: graphql
--port -p port for local http server to listen on, Default: 8000