Restart the app so that graphql-engine is initialized
heroku restart --app <app-name>
Apply the migrations by running:
hasura migrate apply
Apply the metadata by running:
hasura metadata apply
Optional files:
A README that describes your app
A queries.graphql file that lists your sample GraphQL queries that GraphiQL will automatically be loaded with
# Insert authormutation {
insert_author(objects: [{name: "natwarlal"}] {
returning {
id
}
}
}
# Query authorquery {
author {
id name
}
}
What is the point?
A script will refresh all the databases every 30mins for all the example apps (it will run the migrations in the migrations directory)
This way you can safely share the Hasura GraphQL engine link with whoever and put it wherever you want, like in your blogpost or on the Hasura website or in a forum or on quora