Auto-generate GraphQL APIs for your databases.
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.
CRUD Rest APIs in 5 Minutes Using Flask
Use Flask AppBuilder to developed CRUD REST APIs.
Serving ML Model using GraphQL Subscription
Serve machine learning model using GraphQL subscription.
Setting up a PostgreSQL Database
Let’s set up a PostgreSQL database with data for demonstration purposes.
I am going to use the following
docker-compose.yml to set up PostgreSQL and
adminer to manage the database.
Note that I set the default network to
my-network. All the Docker instances should use the same network to communicate with each other.
docker-compose file and the SQL files can be found in this repository.
docker compose upto create and run the Docker instances.
- System: PostgreSQL
- Server: pgsql (follow the name in
- Username: postgres
- Password: postgres