From 1519b66c4c9a85b13995c4757c1b3bb87c110ab5 Mon Sep 17 00:00:00 2001 From: hasura-bot Date: Thu, 25 Nov 2021 18:08:27 +0530 Subject: [PATCH] docs: add note on computed fields not being part of event trigger payload GITHUB_PR_NUMBER: 7816 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7816 PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2888 Co-authored-by: Vildan Softic <2861414+zewa666@users.noreply.github.com> Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> GitOrigin-RevId: 816574a4228a396ebc8bcdfe1a6acd9d7be87bba --- docs/graphql/core/event-triggers/payload.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/graphql/core/event-triggers/payload.rst b/docs/graphql/core/event-triggers/payload.rst index a9b6e524965..e0bcd3e4289 100644 --- a/docs/graphql/core/event-triggers/payload.rst +++ b/docs/graphql/core/event-triggers/payload.rst @@ -108,10 +108,12 @@ JSON payload .. note:: - In case of ``UPDATE``, the events are delivered only if new data is distinct from - old data. The `composite type comparison `__ - is used to compare the old and new rows. If rows contain columns, which cannot be - compared using ``<>`` operator, then internal binary representation of rows by Postgres is compared. + - In case of ``UPDATE``, the events are delivered only if new data is distinct from + old data. The `composite type comparison `__ + is used to compare the old and new rows. If rows contain columns, which cannot be + compared using ``<>`` operator, then internal binary representation of rows by Postgres is compared. + + - :ref:`Table computed fields ` are not included in the event trigger payload data **For example**: @@ -121,7 +123,7 @@ JSON payload "id": "85558393-c75d-4d2f-9c15-e80591b83894", "created_at": "2018-09-05T07:14:21.601701Z", "trigger": { - "name": "test_trigger" + "name": "insert_user_trigger" }, "table": { "schema": "public", @@ -144,8 +146,6 @@ JSON payload } } - - Syntax definitions ------------------