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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...