Back

[SOLVED] How to specify Event

  • 0
  • Functions
Said H
16 Feb, 2023, 09:04

Hello, i've read the documentation but can't find an example for this. Would you let me know how to set up the event for specific collection/db?

I am setting up a function to trigger on an event when Collection A has a DELETE event.

Which one is correct for such purpose? databases.[dbA].collections.[colllectionA].delete or databases.dbA.collections.colllectionA.delete

Thanks.

TL;DR
User is asking for help in specifying an event for a specific collection or database. The correct syntax for setting up an event for a DELETE event in Collection A is: databases.dbA.collections.collectionA.delete
joeyouss
16 Feb, 2023, 14:57

Hi 👋 , the second one would be the correct one

Said H
16 Feb, 2023, 22:27

Thanks so much.

joeyouss
17 Feb, 2023, 04:48

[SOLVED] How to specify Event

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