This is the AWS Lambda integration of GraphQL Server sequlize and postgresSQL. Apollo Server is a community-maintained open-source GraphQL server that works with many Node.js HTTP server frameworks.
npm install -g serverless
and confiure serverless
Clone this project
cd severless-graphql-sample
npm install
npm install apollo-server-lambda graphql
npm install serverless-offline
sls offline start
sls deploy --stage stage
dev:
APP_NAME: severless-graphql-sample
NODE_ENVIRONMENT: dev
HOST: your postgress SQL host
USER_NAME: your database name
PASSWORD: your database password
DATABASE: your database
SECURITY_GROUP_ID: security group id
SUBNET_1: subnet 1
SUBNET_2: subnet