Skip to content
Back

Cloud Functions or Basic request ?

  • 0
  • General
  • Flutter
  • Functions
Vincent Ca
27 Apr, 2023, 14:17

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.

TL;DR
Vincent is developing a mobile app in Flutter and wants to allow users to add points to a Points collection by redeeming a coupon code. They are asking if they should use cloud functions or handle it on the client side.
Binyamin
27 Apr, 2023, 14:47

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

Vincent Ca
27 Apr, 2023, 14:53

Thank you very much.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more