Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.19 KB

AWS Lambda Apollo API

Running GraphQL playground in AWS Lambda with the help of TypeScript and Serverless.

Setup

  1. Install dependencies and run the boilerplate query:
npm install
npm start
  1. You can now edit the .graphql-data.json file to adjust the query or mutation.

  2. When ready just re-run the npm start command to test out the Lambda function locally.

AWS Deployment

  1. Run deployment to AWS:
npm run deploy
  1. Navigate to the GraphQL Playground available at https://RANDOM-ID.execute-api.eu-west-1.amazonaws.com/dev/graphql.

  2. Run clean up the AWS application stack run:

npm run remove

Development

You can run npm run invoke-watch to have the Serverless framwork monitor for file changes and re-run the mock Lambda environment.

Thanks to the help of this article and repository you can debug the function in VS Code:

References