Back

Can multiple functions exist in one Appwrite cloud function?

  • 0
  • Functions
  • Web
  • Cloud
Chidera Humphrey
8 Mar, 2025, 17:15

Can I add more than one function in the src/main.js file of an Appwrite cloud function?

What if the different functions depend on two separate events, specifically: user.*.create and bucket.*.files.*.create, would it still work?

TL;DR
Developers are inquiring about adding multiple functions in one `src/main.js` file of an Appwrite cloud function that depends on different events such as `user.*.create` and `bucket.*.files.*.create`. It is possible to have multiple functions in a single file, and they can handle different events effectively.
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