Data Modelling

In this part of the course, we will build the data model for a realtime todo app. Our todo app will have the following features:

  • Users can maintain personal todos
  • Users can view public todos
  • A list of currently online users using the app
  • Send email when a user signs up

Broadly this means that we have two main models in this app: users and todos, each with its own set of properties.

We will go over them in the subsequent steps.

The final model looks like the following:

Schema Todo app

As we create tables using the console or directly on postgres, Hasura GraphQL engine automatically creates GraphQL schema object types and corresponding query/mutation fields with resolvers.

Close

Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.