Back

How can i do this, please help me

  • 0
  • Functions
  • Flutter
hy
22 Sep, 2023, 20:00

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.

TL;DR
The user wants help with creating a function in Dart for their Appwrite project. They need guidance on implementing logic to check if a user has a premium label and limit the number of teams they can create accordingly. For premium users, there is a limit of 20 teams, and for non-premium users, a limit of 200 teams. The function should check how many teams the user is already a member of and create a new team if they have not reached the limit.
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