PatternPattern

Learn How Hasura Works in 6 Steps

Part 1

Data is everywhere.

The data you need for your applications could be spread across existing databases, in SaaS applications, ERPs, or in other services (and other databases) across different teams in your organization.
If you're building a new application, you will have to put together a new set of data models in your database, and possibly again, use several services which will hold data for you (such as Stripe, Salesforce etc).
Data Everywhere
Part 2

You need to make this data accessible yesterday

You need to access this data to:
Trigger workflows when your data changes
Read this data to see what kind of applications people can build with it
Give access to this existing data to your partner orgs / vendors / users.
Enrich your data from other data sources
But, you need to spend a considerable amount of time to build this, a data-as-a-service layer or a data API. You will need to worry about performance and security. There is a lot of work to be done to make this data accessible securely/ You will need to put in controls to make sure you understand what is slowing down, what is fast, how to optimise for indexes, and more.
Data Accessible
Part 3

You want GraphQL because it makes your users go fast & love you ❤️

GraphQL allows your API consumers to fetch data in exactly the shape that they want to, and has a very rich community of developer tooling and developer experience around it.
GraphQL Fast
Part 4

Enter Hasura: Setup a secure API in seconds

Take Hasura, point it to your database, and get a GraphQL API instantly (it literally takes just a few seconds). Configure mappings, relationship and most important authorisation rules! You can use the UI or the configuration language and you instantly get a secure data API. And now you can start using it to build your applications!
You can also just connect Hasura to your other data sources (GraphQL or REST APIs) and create relationships between types from your database and types created from APIs, you can then “join” them by running GraphQL queries.
Set up
Setup Secure
Part 5

If you need to, add new or existing business logic

Sometimes there is data transformation & business logic around the data. This is what make this your application. Hasura makes it very easy for you to attach different kinds of business logic to this data - during query time, or as you're running a mutation or a workflow. Use Hasura actions or event triggers to add your business language in **any language, any framework.**
Part 6

The world after Hasura!

1. Better domain modelling
2. Improved performance
3. Enhanced *painless* security
4. More love across your team
Hasura Love