Hi everyone, I'm developing a mobile app in flutter. Users should be able to add points to a Points collection (String userId, Int points) by redeem a coupon code. How can I do this ? Do I need function or can I do that with client-side integration ?
Thank you for your time. Vincent.
In your use-case you can do in at the client side
It would be better to do it with a function that way it will be easy to verify the steps and/or add more logic to it.
So, Every time a user enter a coupon you can send it to the function, the function will have the user id and the you can easily add it to the collection
Thank you very much.
Recommended threads
- Invalid document structure: Unknown attr...
Environment: Dart version: 3.5.1 dart_appwrite: 13.0.0 I’ve already created the database structure using a Dart function. I can create data records using cloud...
- open runtime version lacks behind
open runtime version in appwrite CLI is v4 while the hosted runtimes use v5, this mismatch does not permit to debug locally functions using recent runtimes (li...
- Appwrite usage is reporting inaccurate i...
I was using Appwrite mainly for the site hosting on the free tier when I saw that I am using 5 GB storage when Appwrite only allows you to use 2 GB. It’s been l...