question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Relationship Data to be Used in Triggers

See original GitHub issue

Currently, when creating triggers in the Event tab of Hasura console, there’s no way to either:

  1. select another table’s columns through a relationship column; or
  2. 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:open
  • Created 5 years ago
  • Reactions:76
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

10reactions
GollyJercommented, Aug 20, 2019

Came looking for something similar… subscribed! ✔

6reactions
Remy-Tcommented, May 21, 2022

Bump +1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found