Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (21 loc) · 545 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 545 Bytes

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}}}"}