collections
- contacts:
- name
- total_amount
- transactions:
- contact_id
- transaction_type
- date
- amount
Q: When I create new transaction, I need to update total_amount in contact collection with logic depend on transaction_type. Manually, I work 👍 but I know that cloud function can make it easy and powerful💪. Problem, I'm zero acknowledge in functions implementation 😪 and he doesn't have serious video on YouTube about that ...
A video? There's this: https://youtu.be/p0Hw50QfDNk
Have you read through the function docs? https://appwrite.io/docs/functions
I'm watching
Hi, after watching I'm already 0.
I want solve problem posted below and soon implement payment system
Yes same issue here ...
What?
I need an example of how to use function
Like solution for this. After that, I'll be able to understand function implementation
In your case you might want to trigger an execution via event. The data that triggered the event would be in the event data variable.
Where else are you stuck?
I will create an exemple and share it here to analyze
I highly recommend starting your Appwrite function and playing around with it to really learn how it works
Red comments, how to solve
Recommended threads
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- sh: vite: Permission denied
When installing the vue starter template as site and then adding DaisyUI, i get the error `sh: vite: Permission denied`. I also got this issue (with a fresh tem...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.