Re:SurrealDB – Document-graph database, for the realtime web
by revskill on Monday August 22, 2022 @02:48PM
(#32555525)
Does it support http webhook on table events ?
[ Parent
| on HN ]
Re:SurrealDB – Document-graph database, for the realtime web
by tobiemh on Monday August 22, 2022 @02:51PM
(#32555573)
Hi revskill, absolutely you could do something like this:
DEFINE EVENT changed ON person WHEN $before.email != $after.email THEN http::post('https://my-webhook.com', $after);
It's very flexible! We're also releasing support for the fetch() function within the JavaScript functions soon, which will enable you to do the same thing from within the embedded JavaScript functions!