I want to write a function in Dart for my Appwrite project, but I can't grasp the logic of it. My request is, could you please explain how I can do the following to use as a reference for the functions I will create in the future: When a user wants to create a team, the system should check if they have a premium label. For premium users, there will be a limit of 20 teams, and for non-premium users, a limit of 200 teams. The system should check how many teams the user is a member of and, if it's below the limit, create a team with the name the user desires.
Recommended threads
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...