Allow Relationship Data to be Used in Triggers
See original GitHub issueCurrently, when creating triggers in the Event tab of Hasura console, there’s no way to either:
- select another table’s columns through a relationship column; or
- select a View (where I can create a join) for triggers.
Will there be any plan to add support for either one of the options above? There are many use cases, e.g. in the example, send an email to the author
(with its name in the email) through Zapier when an article
is published, supposedly article
an author name
are stored in different tables.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:76
- Comments:33 (11 by maintainers)
Top Results From Across the Web
Hoe to get relationship values in Trigger Please help me urgent
One way to do it will be to get the set of IDs of records that are being used by the trigger, and...
Read more >13 Using Database Triggers
Triggers are created using the CREATE TRIGGER command. This command can be used with any interactive tool, such as SQL*Plus or Enterprise Manager....
Read more >Learn SQL: SQL Triggers
In SQL Server, SQL triggers are database objects, a special kind of stored procedures, which “reacts” to certain actions we make in the ......
Read more >Before Insert: Using __r to pull related data in a Trigger.New ...
Before Insert: Using __r to pull related data in a Trigger.New for loop results in nulls even though lookup relationship has Id ·...
Read more >Writing Triggers to Implement Business Rules in a Relational ...
Writing Triggers to Implement Business Rules in a Relational Database ... Column and table constraints are rigid and can be used only the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Came looking for something similar… subscribed! ✔
Bump +1