graphql-engine

Event triggers on Postgres

Trigger webhooks on database events using Hasura GraphQL Engine’s event triggers.

Event triggers demo

Highlights

Quickstart:

One-click deployment on Heroku

The fastest way to try event triggers out is via Heroku.

  1. Click on the following button to deploy GraphQL Engine on Heroku with the free Postgres add-on:

    Deploy to Heroku

  2. Open the Hasura console

    Visit https://<app-name>.herokuapp.com (replace <app-name> with your app name) to open the admin console.

  3. Configure your first event trigger and webhook

    Create a table, configure the database update you want to use as a trigger and instantly invoke a webhook by adding a new row in your table. Follow this simple guide.

Other deployment methods

For Docker-based deployment and advanced configuration options, see deployment guides.

Demo (30 seconds)

Create an event-trigger and webhook in 60 seconds

Create an event-trigger and webhook in 60 seconds

Serverless boilerplates

Use one of the serverless trigger boilerplates to deploy a webhook that can capture database events.
Serverless/cloud-function platforms covered by boilerplates:

Architecture

Event triggers architecture

Demos & Tutorials: Building reactive & async apps/features

Notifications

Trigger push notifications and emails based on database events. Try the demo and tutorial below to see how browser push notifications are triggered when the user inserts some data:

Data transformation (ETL)

Transform and load data into external data-stores. Check out this demo and tutorial below to see how Postgres data is transformed to build and populate an Algolia index:

Building reactive UX for your async backend with realtime GraphQL

Propagate event-driven and asynchronous information to UI clients easily with GraphQL subscriptions & live-queries.

Reactive apps architecture

Watch: Building a reactive app with an async backend (04:15 mins)

Translations

This document is available in the following translations: