Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvinthen/swapi-graphql-lambda
A GraphQL schema hosted in AWS Lambda wrapping http://swapi.co/
https://github.com/alvinthen/swapi-graphql-lambda
aws-lambda graphql
Last synced: 10 days ago
JSON representation
A GraphQL schema hosted in AWS Lambda wrapping http://swapi.co/
- Host: GitHub
- URL: https://github.com/alvinthen/swapi-graphql-lambda
- Owner: alvinthen
- Archived: true
- Created: 2016-01-07T11:37:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-13T07:00:20.000Z (over 8 years ago)
- Last Synced: 2024-08-01T22:51:35.951Z (3 months ago)
- Topics: aws-lambda, graphql
- Language: JavaScript
- Size: 23.4 KB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-graphql - swapi-graphql-lambda - A GraphQL schema hosted in AWS Lambda wrapping swapi.co (Examples / JavaScript Examples)
README
# swapi-graphql-lambda
A [GraphQL](http://graphql.org/)
schema hosted in
[AWS Lambda](https://aws.amazon.com/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
1. Set Lambda handler to `swapiLambda.handler`
1. Test the Lambda function by supplying test event as below
```js
{"query": "query{allPlanets{planets{name}}}"}
```