HASURA GRAPHQL NOTES
A personal collection of Hasura.io related information for easy review.
PLEASE NOTE!
This is Work-in-Progress so contents are incomplete and possibly wrong. Apologies!
Updating Hasura GraphQL engine on Heroku
This guide will help you update Hasura GraphQL engine running on Heroku. This guide assumes that you already have Hasura GraphQL engine running on Heroku.
The current latest version is: hasura/graphql-engine:v1.0.0-beta.2
Follow these steps to update Hasura GraphQL engine to the latest version:
Deploy Straight on Heroku
You can quickly deploy the Hasura app onto your Heroku account by clicking the button below.
Step 1: Clone the Hasura GraphQL engine Heroku app
The Hasura app with Heroku buildpack/configuration is available at: https://github.com/hasura/graphql-engine-heroku
Clone the above repository.
If you already have this, then pull the latest changes which will have the updated GraphQL engine docker image.
Step 2: Attach your Heroku app
Let’s say your Heroku app is called hasura-heroku and is running on https://hasura-heroku.herokuapp.com.
Use the Heroku CLI to configure the git repo you cloned in Step 1 to be able to push to this app.
# Replace <hasura-heroku> with your Heroku app's name
$ heroku git:remote -a <hasura-heroku>
$ heroku stack:set container -a <hasura-heroku>
2
3
Step 3: Git push to deploy the latest Hasura GraphQL engine
When you git push to deploy, the Heroku app will get updated with the latest changes:
$ git push heroku master
Deploy a specific version of Hasura GraphQL engine
Head to the Dockerfile in the git repo you cloned in Step 1.
Change the FROM line to the specific version you want. A list of all releases can be found at https://github.com/hasura/graphql-engine/releases
FROM hasura/graphql-engine:v1.0.0-beta.2
...
...
2
3
4
Change v1.0.0-alpha01 to v1.0.0-beta.2 for example, and then git push heroku master to deploy.
Good Links To Summarize
A tutorial for using Firebase to add authentication and authorization to a realtime Hasura app
Add Authentication and Authorization to Vue.js Apps with Auth0 and GraphQL
Add authentication to Vue.js app with Auth0 Authorization using JWT and Hasura GraphQL permissions A sample Vue app protected by login to fetch articles written by logged in user
Add Authentication and Authorization to Next.js 8 Serverless Apps using JWT and GraphQL