-
In my team we have the Currently, when I select for an Is it possible to Otherwise, for example, if 150 rows where affected by the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@migbash However, you can try a workaround solution which involves the following steps :
|
Beta Was this translation helpful? Give feedback.
@migbash
Hasura relies on postgres database triggers (in the backend) for event triggers and specifically creates triggers for EACH ROW.
It is not possible to have one Event Trigger for a batch INSERT/UPDATE, in the current product.
However, you can try a workaround solution which involves the following steps :
Create a new table (to be used as a proxy)
Create a postgres trigger that inserts records into the proxy table (after a bulk insert/update on the target tables). The trigger must be executed for EACH STATEMENT (not EACH ROW) Doc
Create a hasura event trigger based on inserts to the proxy table