Instant GraphQL APIs for Your Databases

alpha2phi
6 min readJul 16, 2021

Auto-generate GraphQL APIs for your databases.

Photo by Tobias Fischer on Unsplash

Overview

I talked about generating REST APIs in 5 minutes and using GraphQL to serve machine learning models in earlier articles. GraphQL, by Facebook, is gaining popularity among developers. In this article let’s explore open-source platforms that can help us automatically generate GraphQL APIs for databases.

Setting up a PostgreSQL Database

Let’s set up a PostgreSQL database with data for demonstration purposes.

docker-compose

I am going to use the following docker-compose.yml to set up PostgreSQL and adminer to manage the database.

--

--

alpha2phi
alpha2phi

Written by alpha2phi

Software engineer, Data Science and ML practitioner.

No responses yet