Back

Can i choose a specific database/collection in Events ?

  • 1
  • Databases
  • Functions
  • Cloud
electrical_eng_l
3 Jan, 2025, 13:45

Instead of

databases..collections..create

I want to have it only work on a specific collection, is that possible?

If not any plans to implement this feature?

TL;DR
Developers want to know if they can choose a specific database/collection in Events. By using `databases.DB-ID.collections.COLL-ID.create`, it can be triggered only when the specified collection is created. Currently, it's not possible to target a specific collection directly, but they could implement this feature in the future.
electrical_eng_l
3 Jan, 2025, 13:46

“ databases. * .collections. * .create” is what i meant before

Darshan Pandya
3 Jan, 2025, 13:51

Try - databases.DB-ID.collections.COLL-ID.create

Darshan Pandya
3 Jan, 2025, 13:52

but i am not sure of your usecase, this would only fire once when that ID collection is created.

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