graphjin icon indicating copy to clipboard operation
graphjin copied to clipboard

Add ability to fire web-hooks on mutation queries

Open dosco opened this issue 6 years ago • 4 comments

What would you like to be added:

Add the ability to call a web-hook on successful completion of inserts, updates, deletes or upserts.

Why is this needed:

This will allow app developers to build complex flows like sending an email once a new item is added to the database or trigger some other kind of workflow after a mutation is successful.

dosco avatar Dec 01 '19 06:12 dosco

I think that is great; hasura allows it and it's very useful. However that that could be implemented as an internal event as well, usable for the embedded server, and with a default webhook trigger implementation.

Howe

howesteve avatar Dec 05 '19 02:12 howesteve

Your whole idea around adding internal hooks is interesting, I have thought a bit about Super Graph as a library to embed into an existing Go web app I can see how hooks would help with this.

Feel free to open an issue around adding various hooks and writing a clean api so maybe Super Graph can be instantiated and adding to an app as a http route handler.

dosco avatar Dec 07 '19 06:12 dosco

Hi, is there any news about this? Thanks!

brunoprietog avatar Oct 10 '21 04:10 brunoprietog

I'm working on adding the ability to call web-hooks in GraphJin. Will keep you updating working on a design that will scale.

dosco avatar Oct 10 '21 09:10 dosco