mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
51 lines
1.2 KiB
ReStructuredText
51 lines
1.2 KiB
ReStructuredText
.. meta::
|
|
:description: Manage event triggers with Hasura
|
|
:keywords: hasura, docs, event trigger
|
|
|
|
.. _event_triggers:
|
|
|
|
Event Triggers
|
|
==============
|
|
|
|
.. contents:: Table of contents
|
|
:backlinks: none
|
|
:depth: 1
|
|
:local:
|
|
|
|
Introduction
|
|
------------
|
|
|
|
Hasura can be used to create event triggers on tables in the Postgres database. Event triggers reliably capture
|
|
events on specified tables and invoke webhooks to carry out any custom logic.
|
|
|
|
.. thumbnail:: /img/graphql/core/event-triggers/data-triggers-arch.png
|
|
:class: no-shadow
|
|
:width: 900px
|
|
:alt: Hasura event trigger architecture
|
|
|
|
Events can be of the following types:
|
|
|
|
- INSERT: When a row is inserted into a table
|
|
- UPDATE: When a row is updated in a table
|
|
- DELETE: When a row is deleted from a table
|
|
- MANUAL: Using the console or API, an event can be triggered manually on a row
|
|
|
|
.. note::
|
|
|
|
Event webhook notifications will be delivered at least once, and may arrive out of order with
|
|
respect to the underlying event.
|
|
|
|
Learn more
|
|
----------
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
:titlesonly:
|
|
|
|
create-trigger
|
|
payload
|
|
serverless
|
|
samples
|
|
Invoke trigger manually <invoke-trigger-manually>
|
|
clean-up
|