Hasura GraphQL Engine is a blazing-fast GraphQL server that gives you ⚡ instant, realtime GraphQL APIs over Postgres, with webhook triggers on database events for asynchronous business logic.
Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.
Deploy Hasura GraphQL Engine on Heroku and get a GraphQL endpoint in under 30 seconds 🕐
Read more at hasura.io and the docs.
Deploy to Heroku and instantly get a realtime GraphQL API backed by Heroku Postgres:
Once the deployment is complete, click on the View
button as marked above.
This will take you to the Hasura Console, where you can connect your database, create a table and make
your first GraphQL query.
Head to the Data
tab on the console and connect your database. If you do not have an existing database, you can connect to the
Heroku Postgres database that was set up with your deployment using the DATABASE_URL
env var.
Navigate to Data -> Create table
on the console and create a table called
profile
with the following columns:
name | type |
---|---|
id |
Integer (auto-increment) |
name |
Text |
Choose id
as the Primary key and click the Create
button.
Once the table is created, go to the Insert Row
tab and insert some sample
rows:
Thor
Iron Man
Hulk
Captain America
Black Widow
Switch to the GraphiQL
tab on top and execute the following GraphQL query:
query {
profile {
id
name
}
}
Feel free to talk to us on Discord about anything and everything. You can also contact us using one of the following channels:
- Support & feedback: Discord
- Issue & bug tracking: GitHub issues
- Follow product updates: @HasuraHQ
- Talk to us on our website chat.