Adding GraphQL to the Hasura

Mar 22: We’re live with graphql on postgres now!

This means that you can get GraphQL APIs for your app with authorisation in under a minute using Hasura’s kickass API console:

Create tables & relationships; add access control rules
Start making GraphQL queries

And fitting with the philosophy of Hasura, you don’t lose power when you get this convenience. Migration files get automatically created as you use the UI, and you even have direct access to postgres.

Get notified when we release GraphQL on Hasura!

Note: we already have a super powerful JSON query syntax and APIs that you can use to query data from your apps. It has all the querying power of GraphQL (graph queries, bulk queries). So if you’re not into GraphQL you can just use right now and skip this post. 😉

Current JSON language you can use with Hasura

And this is what that same query will look like in GraphQL:

GraphQL query for fetching authors and their articles

Much neater, isn’t it? 💃

If you’re familiar with GraphQL, you probably already know this, but it’s an insanely better way to query your data not just because of a cleaner syntax, but primarily because of the amazing tooling and client library support. For example:

  1. GraphiQL: An interactive query browser and explorer that helps you write and validate queries
  2. Client side codegen or validation: SDKs for your favourite client-side framework that give you type-safety or compile-time validation

More news coming soon!

Hasura is an open-source engine that gives you realtime GraphQL APIs on new or existing Postgres databases, with built-in support for stitching custom GraphQL APIs and triggering webhooks on database changes.

Tanmai Gopal

Tanmai Gopal

Tanmai is the co-founder of He is a StackOverflow powered fullstack developer and is passionate about making it easier to build things.

Read More