Data Modeling

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.

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved