How we managed to develop in 2 days what we used to develop in 2 weeks because of Hasura

Saloni Kaur
5 min readJul 2, 2021
Image taken from: https://www.gameinformer.com/2020/04/28/sonic-movie-director-no-official-plans-for-sequel-yet

I will try to bring the reader through a use case where we used Hasura and didn’t have to write a single line of backend code. I am going to assume the reader understands how GraphQL works.

Setting Context

Imagine we are building a todo app. Let’s look into a little more sophisticated app than the regular todo app. So let’s say, each task in the todo app can have a subtask.

APIs for Frontend

So we have a few APIs that the frontend requires :

  • Create a task with subtasks
  • Edit a subtask in a task
  • Edit a task
  • Delete a subtask in a task
  • Delete a task

Now these are simple enough APIs that a backend can provide for. But we are using this example to understand how Hasura works.

Database Design🧐

Before we move to the backend App server, let’s talk database! For this purpose, let’s take a relational database like Postgres.

--

--