Hasura — instant GraphQL API and much more

whoami?

Tech Lead at Hasura

 

Twitter: @aleksandrasays

GitHub: @beerose

Blog: aleksandra.codes

Introduction to Hasura

What is Hasura?

Open source • GraphQL engine • On Postgres

 

Realtime GraphQL Engine

 

GraphQL Queries Compiler

 

users {
  name
  posts {
    title
    content
    tags {
      name
    }
  }
}

GraphQL Queries Compiler

 

users {
  name
  posts {
    title
    content
    tags {
      name
    }
  }
}
SELECT 
  users.name
  posts.title
  posts.content
  tags.name
FROM 
  users, posts, tags
WHERE
  users.id = posts.author_id,
  posts.id = tags.post_id

Authorization

 

 

Authentication

JWT mode

App

Auth

Service

JWT
Hasura claims
Query, JWT

 

Authentication

Webhook mode

App

Query
req headers

 

</>
variables
eg. x-hasura-user-id
req headers

 

Webhook

Hasura Cloud

Hasura Cloud Demo

App

Remote Schemas

 

Unified GraphQL API

GraphQL Service

Data Federation Demo

Data Triggers

APIs

Background jobs

GraphQL mutations

Event queue

Microservices

Serverless functions

Data Triggers Demo

App

Cron Triggers

Event queue

Microservices

Serverless functions

One-off Scheduled Triggers

Event queue

Microservices

Serverless functions

Actions

App

</>
GraphQL 
query / mutation

POST endpoint

Actions

Actions Demo

Takeaways

Introduction to Hasura

By Aleksandra Sikora

Introduction to Hasura

  • 2,171