How to Create a Serverless GraphQL API for MySQL, Postgres and Aurora

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • examples

    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. (by serverless)

  • You can find the full example project that we’ve been using in this GitHub repo. The easiest way to experiment with the project is to clone the repo and deploy it from your machine using npm run deploy.

  • graphql-yoga

    Discontinued 🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements W3C Fetch API and can run/deploy on any JS environment. [Moved to: https://github.com/dotansimha/graphql-yoga] (by prisma)

  • The resolvers constant now holds the definitions for all our API's functions. Our next step is to create the GraphQL server. Remember the graphql-yoga library we required above? We'll use that library here to create a working GraphQL server easily and quickly:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • graphql-playground

    Discontinued 🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration) [Moved to: https://github.com/graphql/graphql-playground] (by prisma)

  • Finally, in the serverless.yml file we define two functions, graphql and playground. The graphql function is going to handle all the API requests, and the playground endpoint will create an instance of GraphQL Playground for us, which is a great way to try out our GraphQL API in a web browser:

  • serverless-graphql

    Serverless GraphQL Examples for AWS AppSync and Apollo

  • For more GraphQL API examples using Serverless, check out the serverless-graphql repo.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts