Back

Realtime Events Create only

  • 0
  • Realtime
Dipen
21 Aug, 2023, 07:20

I want to listen to create document only! How can I achieve that?

TL;DR
The user wants to create a webhook that listens only to the "create document" event in a database. They ask for examples or solutions. The solution is to use webhooks and set an out-webhook based on the single event.
Binyamin
21 Aug, 2023, 12:29

In realtime you're not listening to specific events but rather to channels.

But, what could be your solution is to use Webhooks in which you can set a out-webhook based on single event

Dipen
21 Aug, 2023, 16:29

is there any examples that I can rely on to do that?

Binyamin
21 Aug, 2023, 16:30

For which part? the webhook?

Dipen
21 Aug, 2023, 16:40

yes..

Dipen
21 Aug, 2023, 16:40

I want to listen to only create document event of that database not on update/delete

Binyamin
21 Aug, 2023, 16:41

This way you can create a webhook

Binyamin
21 Aug, 2023, 16:41

In this example the webhook will run only when the user.create event was fired

Binyamin
21 Aug, 2023, 16:41

But you'll need some endpoint that will listen to it

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more