How trigger event for all related object of the updated object

System Information
  • Strapi Version: v3.5.1 Community Edition
  • Operating System: Ubuntu 18.04 LTS (AWS EC2)
  • Database: PosgreSQL 10
  • Node Version: v12.21.0
  • NPM Version: 6.14.11

I have a structures “Article” and “Author” in strapi. It’s related structures. One author can have several articles. I use WebHooks to synchronize strapi content with my DynamoDB. It works OK. Once I create, update, delete, etc any content in the strapi, it is updated in the DynamoDB. In all cases except one.

Once I update an author (for example change the name), this author is updated in the DynamoDB, but the related content (articles of this authors) is not.

So, what I want. Once a webhook is triggered for some object, I want to trigger webhooks for all related objects.

I will be really appreciate for any ideas. Also I ready to change some code in strapi)


Up. I’m facing same use case.
I have a many-to-many relation (Courses <> Instructors) and when I’m adding/removing instructors in a course, I’m expecting not only the course event to be triggered by the webhook but also the instructor one.