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
- Help Needed: "The current user has been ...
Facing a 403 Forbidden error with the message "The current user has been blocked" while trying to log in via GitHub and Email/Password. This is happening on a ...
- Unable to signup to appwrite cloud
When attempting to create an online cloud account on appwrite.io, I get the following message : "This email address must already be in its canonical form. Pleas...
- Email address must be in its canonical f...
Hello, Recently I was trying to signup with my GitHub account with appwrite account for availing the student benifits but while trying to signup I saw such erro...