/swapi-graphql-lambda

A GraphQL schema hosted in AWS Lambda wrapping http://swapi.co/

Primary LanguageJavaScript

swapi-graphql-lambda

A GraphQL schema hosted in AWS Lambda wrapping http://swapi.co/

Based on https://github.com/graphql/swapi-graphql

Getting started

  1. Install dependencies with
npm install
  1. Bundle the project into one file with
npm run build
  1. Upload the generated swapiLambda.js to AWS Lambda
  2. Set Lambda handler to swapiLambda.handler
  3. Test the Lambda function by supplying test event as below
{"query": "query{allPlanets{planets{name}}}"}