2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Examples for event triggers with Hasura
|
|
|
|
:keywords: hasura, docs, event trigger, example
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
Event trigger samples
|
|
|
|
=====================
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2019-01-17 16:32:56 +03:00
|
|
|
|
|
|
|
Boilerplates
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
Here are a few boilerplates you can use to build and deploy event triggers on different cloud providers:
|
2019-01-17 16:32:56 +03:00
|
|
|
|
|
|
|
* Source code: https://github.com/hasura/graphql-engine/tree/master/community/boilerplates/event-triggers
|
|
|
|
|
|
|
|
There are 2 types of boilerplates:
|
|
|
|
|
|
|
|
**Echo**
|
2019-09-11 10:17:14 +03:00
|
|
|
Returns the event payload with some augmented data. It helps you in understanding the event payload and parsing it.
|
2019-01-17 16:32:56 +03:00
|
|
|
|
|
|
|
**Mutation**
|
2019-09-11 10:17:14 +03:00
|
|
|
Makes a mutation based on the event payload. It helps in understanding database access inside an event trigger.
|
2018-09-11 14:11:24 +03:00
|
|
|
|
|
|
|
Push Notifications
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-11-27 13:31:56 +03:00
|
|
|
Here's a `notification demo app <https://serverless-push.demo.hasura.app/>`_ showcasing sending web
|
2018-09-11 14:11:24 +03:00
|
|
|
notifications using Hasura event triggers and FCM.
|
|
|
|
|
|
|
|
* Video: https://www.youtube.com/watch?v=nuSHkzE2-zo&feature=youtu.be
|
2019-01-17 16:32:56 +03:00
|
|
|
* Source code: https://github.com/hasura/graphql-engine/tree/master/community/sample-apps/serverless-push
|
2018-09-11 14:11:24 +03:00
|
|
|
|
|
|
|
Data Transformations (ETL)
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-27 13:31:56 +03:00
|
|
|
Here's a `serverless ETL demo app <https://serverless-etl.demo.hasura.app/>`_ built using Hasura event triggers and
|
2018-09-11 14:11:24 +03:00
|
|
|
Algolia search.
|
|
|
|
|
|
|
|
* Video: https://youtu.be/kWVEBWdEVAA
|
2019-01-17 16:32:56 +03:00
|
|
|
* Source code: https://github.com/hasura/graphql-engine/tree/master/community/sample-apps/serverless-etl
|