Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 667 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 667 Bytes

graphql-serverless-demo

This project is a demonstration on how to implement GraphQL with AWS Lambda.

Services

The following AWS features will be used / are required:

  • API Gateway
  • Lambda
  • DynamoDB

Setup environment

  1. Create DynamoDB Table with name customer and an item like:
{
  "age": 27,
  "birthday": "1991-09-12",
  "id": 0,
  "name": "Micha",
  "orders": [
    {
      "amount": 123,
      "date": "2017-12-21"
    }
  ]
}
  1. Lambda: Deploy Fat-JAR
  2. Create API Gateway with 1 endpoint as Lambda Proxy and wire it with the previously created lambda.

Build Lambda function and execute query + mutation

mvn clean package