Skip to content
A GraphQL schema hosted in AWS Lambda wrapping http://swapi.co/
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
scripts
.babelrc
.gitignore
README.md
index.js
package.json
webpack.config.js

README.md

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}}}"}
You can’t perform that action at this time.