serverless
β‘ Serverless Framework β Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.
- 47k
- JavaScript
- 2 d ago

Serverless GraphQL Examples for AWS AppSync and Apollo
Repo serverless/serverless-graphql, read from GitHub 4 h ago. serverless has not joined Take My Repo.
serverless/serverless-graphql is a public repo on GitHub by serverless. Serverless GraphQL Examples for AWS AppSync and Apollo. It declares the MIT license on GitHub. It is written mainly in JavaScript, has 2,698 stars and last changed on 2024-12-09. It is archived: its maker no longer maintains it. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
π¦ Archived - This repository is archived and preserved for reference only. No updates, issues, or pull requests will be accepted. If you have questions, please reach out to our support team.
Part 1: Running a scalable & reliable GraphQL endpoint with Serverless
Part 2: AppSync Backend: AWS Managed GraphQLΒ Service
Part 3: AppSync Frontend: AWS Managed GraphQLΒ Service
This starter kit is an opinionated set of tools combined to help you get started building a Serverless application with a GraphQL endpoint and deploy them to production in minutes.
This example uses the following technologies:
Frontend
Backend
Other Utilities and Integrations

You need to have Node 6 or higher installed.
npm install -g serverless
npm install -g yarn
npm install -g netlify-cli
Install Dependencies.
yarn install

Please note: AWS CLI is required to be installed on your system
AWS Appsync (Serverless Offline does not support Appsync at this point)
Lambda Backend (Serverless Offline Supported)
cd app-backend/rest-api
yarn start
Generate your Consumer Key and Secret Key for a Twitter App and update config
DynamoDB
cd app-backend/dynamodb
yarn start
RDS
cd app-backend/rds
yarn start
For Appsync Backend please select Appsync Client Integration:
cd app-client/appsync-client/
yarn start
For Lambda Backend please select Apollo Client Integration:
cd app-client/apollo-client/
yarn start
Also, please make sure GraphQL endpoint is configured correctly in config/security.env.local to run client on local.
http://localhost:4000/graphiql
http://localhost:4000/playground
rest-api and dynamodb backends route GET and POST to the same /graphql endpoint handler
http://localhost:4000/graphql
{
getUserInfo(handle: "Madalyn61") {
name
tweets {
items {
retweeted
retweet_count
favorited
tweet
}
}
topTweet {
retweeted
retweet_count
favorited
}
}
}
If you've followed me this far, DynamoDB will now be available and running on your local machine at http://localhost:8000/shell:

Configure your AWS keys. Here you can find a 2min walkthrough how to do retrieve the keys.
sls config credentials --provider aws --key <your_aws_access_key> --secret <your_aws_secret_key>

You need to make sure you have access to your deployed lambda functions.
Note Please make sure latest serverless package is installed npm install -g serverless@latest
To use aws appsync you will need to create cognito user pool to authenticate the API Reference
- AWS DynamoDB
cd app-backend/appsync/dynamodb
yarn deploy-prod
yarn deploy-appsync
- AWS ElasticSearch
cd app-backend/appsync/dynamo-elasticsearch-lambda
yarn deploy-prod
yarn deploy-appsync
- AWS Lambda
cd app-backend/appsync/lambda
yarn deploy-prod
yarn deploy-appsync
Lambda Backend (Serverless Offline Supported)
Twitter Rest API
cd app-backend/rest-api
yarn deploy-prod
DynamoDB
cd app-backend/dynamodb
yarn deploy-prod
RDS
Create RDS Instance. For example - PostGres Tutorial
Please make sure connectivity to production RDS instance works (For example: test via razersql)
Edit the config/security.env.prod file and replace the DATABASE_URL variable with your amazon rds endpoint (eg: postgres://${username}:{password}@${endpoint):5432/${dbName}).
Run the deployment command
cd app-backend/rds
yarn deploy-prod

Note:
AWS S3
First you will need to choose custom s3 bucket name for client. For ex: s3-firstname-serverless-graphql. Please note that bucket name must be unique across all aws buckets.
Now, in app-client/<client-name>/serverless.yml edit the custom.client.bucketName property and replace it the bucket name above.
Now, in app-client/<client-name>/package.json edit the homepage property with https://${yourBucketName}.s3-website-us-east-1.amazonaws.com. For ex: https://s3-bucketname-serverless-graphql.s3-website-us-east-1.amazonaws.com
Run the deployment command
cd app-client/<client-name>/
yarn deploy-s3
# Your deployment url will be printed on the console
Your deployment url will be : https://s3.amazonaws.com/[bucket-name]/index.html
Netlify
First you will need to create a new account. Please see https://www.netlify.com/docs/cli/ for details.
Remove homepage property in app-client/<client-name>/package.json. This property is not required while deploying to netlify but is required for aws s3 deployment.
The first time you use the cli tool, youβll be asked to authenticate through the browser. After you authenticate netlify will store an access token in a global ~/.netlify/config
Run deployment command
cd app-client/<client-name>/
yarn deploy-netlify
Your deployment url will be printed on the console
type Mutation {
# Create a tweet for a user
# consumer keys and tokens are not required for dynamo integration
createTweet(
tweet: String!,
consumer_key: String,
consumer_secret: String,
access_token_key: String,
access_token_secret: String,
created_at: String!
): Tweet!
# Delete User Tweet
deleteTweet(
tweet_id: String!,
consumer_key: String,
consumer_secret: String,
access_token_key: String,
access_token_secret: String
): Tweet!
# Retweet existing Tweet
reTweet(
tweet_id: String!,
consumer_key: String,
consumer_secret: String,
access_token_key: String,
access_token_secret: String
): Tweet!
# Update existing Tweet
updateTweet(tweet_id: String!, tweet: String!): Tweet!
# Create user info is available in dynamo integration
updateUserInfo(
location: String!,
description: String!,
name: String!,
followers_count: Int!,
friends_count: Int!,
favourites_count: Int!,
followers: [String!]!
): User!
}
type Query {
meInfo(consumer_key: String, consumer_secret: String): User!
getUserInfo(handle: String!, consumer_key: String, consumer_secret: String): User!
# search functionality is available in elasticsearch integration
searchAllTweetsByKeyword(keyword: String!): TweetConnection
}
type Subscription {
addTweet: Tweet
@aws_subscribe(mutations: ["createTweet"])
}
type Tweet {
tweet_id: String!
tweet: String!
retweeted: Boolean
retweet_count: Int
favorited: Boolean
created_at: String!
}
type TweetConnection {
items: [Tweet!]!
nextToken: String
}
type User {
name: String!
handle: String!
location: String!
description: String!
followers_count: Int!
friends_count: Int!
favourites_count: Int!
followers: [String!]!
topTweet: Tweet
tweets(limit: Int!, nextToken: String): TweetConnection
# search functionality is available in elasticsearch integration
searchTweetsByKeyword(keyword: String!): TweetConnection
}
schema {
query: Query
mutation: Mutation
subscription: Subscription
}

.
βββ /app-client/ # React JS Client Integrations
β βββ /appsync-client # Appsync Client Itegrations
β β βββ /public/ # front End Utils
β β β βββ /index.html # main html file to render react app
β β β βββ /... # front end metadata
β β βββ /src/ # react app code logic
β β β βββ /components/ # react components
β β β βββ /App.js # react application logic
β β β βββ /index.js # react dom render
β β β βββ /aws-exports.js # AWS Authentication
β β β βββ /... # etc.
β β βββ /package.json # react app dependencies
β β βββ /serverless.yml # Serverless yaml for AWS deployment
β βββ /apollo-client # Apollo Client Itegrations
β β βββ /public/ # front End Utils
β β β βββ /index.html # main html file to render react app
β β β βββ /... # front end metadata
β β βββ /src/ # react app code logic
β β β βββ /components/ # react components
β β β βββ /App.js # react application logic
β β β βββ /index.js # react dom render
β β β βββ /... # etc.
β β βββ /package.json # react app dependencies
β β βββ /serverless.yml # Serverless yaml for AWS deployment
βββ /app-backend/ # Server Backend Integrations
β βββ /appsync/ # AWS Appsync Integrations
β β βββ /dynamodb/* # AWS Appsync Dynamodb
β β βββ /elasticsearch/* # AWS Appsync Elasticsearch
β β βββ /lambda/ # AWS Appsync Lambda
β βββ /dynamodb # Integration with DynamodDB Backend
β β βββ /seed-data/ # seed test data
β β β βββ /create_seed_data.js # Create Seed data to be inserted in dynamodb local and remote
β β β βββ /insert_seed_data_prod.js # Insert seed data in aws dynamodb (serverless)
β β β βββ /sample-query.txt # Test Query on DynamoDB Local Client http://localhost:8000
β β βββ /handler.js # AWS Lambda - Apollo Lambda Server
β β βββ /package.js # server side dependencies
β β βββ /resolvers.js # graphql resolvers
β β βββ /schema.js # graphql schema
β β βββ /serverless.yml # Serverless yaml for AWS deployment
β β βββ /webpack.config.js # Webpack server side code with ES6
β βββ /rest-api # Integration with REST API Backend
β β βββ /handler.js # AWS Lambda - Apollo Lambda Server
β β βββ /package.js # server side dependencies
β β βββ /resolvers.js # graphql resolvers
β β βββ /schema.js # graphql schema
β β βββ /serverless.yml # Serverless yaml for AWS deployment
β β βββ /webpack.config.js # Webpack server side code with ES6
β βββ /rds # Integrations for PostGres, MySQL and Aurora Backend
β β βββ /seed-data/ # seed test data
β β β βββ /create_seed_data.js # Create Seed data to be inserted in dynamodb local and remote
β β β βββ /seed_local.js # Insert seed data in aws dynamodb (serverless)
β β β βββ /seed_prod.js # Test Query on DynamoDB Local Client http://localhost:8000
β β βββ /migrations/ # Create DDL statements
β β βββ /knexfile.js # Database Configurations
β β βββ /handler.js # AWS Lambda - Apollo Lambda Server
β β βββ /package.js # server side dependencies
β β βββ /resolvers.js # graphql resolvers
β β βββ /schema.js # graphql schema
β β βββ /serverless.yml # Serverless yaml for AWS deployment
β β βββ /webpack.config.js # Webpack server side code with ES6
βββ /config/ # Configuration files
β βββ /security.env.local # local config
β βββ /security.env.prod # production config
As the Serverless GraphQL Apollo community grows, we'd like to keep track of who is using the platform. Please send a PR with your company name and @githubhandle if you may.
Currently officially using Serverless GraphQL Apollo :

serverless/serverless-graphql is a public repo on GitHub by serverless. Serverless GraphQL Examples for AWS AppSync and Apollo.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
No. It is archived on GitHub: its maker no longer maintains it.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
β‘ Serverless Framework β Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.
Serverless Examples βΒ A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.

React to any event with serverless functions across clouds
β‘οΈππ¦ Serverless plugin to bundle Python packages
AWS AI Stack β A ready-to-use, full-stack boilerplate project for building serverless AI applications on AWS