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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...