How to correctly call my Appwrite function when deleting an innocap in my app?
- 1
- Android
- Functions
- Flutter
- Self Hosted
'm working on connecting my backend with the frontend of my app, and I need to replace an existing function with my Appwrite function called deleteInnocap in the appwrite_client.dart file. I want this function to be triggered when I delete an innocap in my app. However, I'm encountering issues when calling the PHP function. Can someone guide me on how to correctly call the deleteInnocap PHP function in appwrite_client.dart so that it gets executed when I delete an innocap in my app?
If you want your function to trigger on document creation, you wouldn't be executing it from your client app. In your function settings, there's a section for events. There, you'd specify you want the function to trigger on document delete
Recommended threads
- CORS preflight returns 500 on Dart funct...
Hey everyone 👋 I’m running a Dart cloud function, Every time I respond to a preflight (OPTIONS) request, I get a 500 internal error, and the logs show: ```NoSu...
- execution failed
When executing an appwrite function, I'm getting a 500 error, but I don't see it in executions. This issue appeared today. Here's the appwrite function ID: 68b4...
- User Labels use Operator.arrayInsert(‘la...
Can I use the new db operators on user labels or roles?