2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Invoke event triggers on the Hasura console
|
|
|
|
:keywords: hasura, docs, event trigger, console, invoke
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _invoke_trigger_console:
|
|
|
|
|
2019-05-13 12:41:07 +03:00
|
|
|
Invoke event trigger via console
|
|
|
|
================================
|
|
|
|
|
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
You can select the ``Via console`` trigger operation while :ref:`creating an event trigger <create_trigger>`
|
2019-09-11 10:17:14 +03:00
|
|
|
to allow invoking the event trigger on rows manually using the Hasura console *(available after version v1.0.0-beta.1)*.
|
2019-05-13 12:41:07 +03:00
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
In the ``Data -> [table-name] -> Browse Rows`` tab, clicking the ``invoke trigger`` button next to any row lets
|
|
|
|
you invoke "manual event triggers" configured on the table with that row as payload *(the button will be shown
|
2019-05-13 12:41:07 +03:00
|
|
|
only if you have any triggers configured)*:
|
|
|
|
|
2020-08-25 19:21:21 +03:00
|
|
|
.. thumbnail:: /img/graphql/core/event-triggers/select-manual-trigger.png
|
2020-01-08 16:20:18 +03:00
|
|
|
:alt: Invoke event trigger on console
|
2019-05-13 12:41:07 +03:00
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
Click on the event trigger you want to run and a modal will pop up with the request and response.
|
2019-05-13 12:41:07 +03:00
|
|
|
|
2020-08-25 19:21:21 +03:00
|
|
|
.. thumbnail:: /img/graphql/core/event-triggers/run-manual-trigger.png
|
2020-01-08 16:20:18 +03:00
|
|
|
:alt: Request and response of event trigger
|
2019-05-13 12:41:07 +03:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
You can also use the :ref:`invoke_event_trigger` metadata API to invoke manual triggers.
|