Back

Is there a way to enforce unique team names?

  • 1
  • Auth
  • Web
  • Cloud
devo_wm
22 May, 2024, 21:26

I was able to create teams with the same name, I was hoping to get an exception from appwrite

TL;DR
Developers are looking for a way to enforce unique team names in an application. One suggestion is to only allow creates via a function for validation. Currently, teams can have the same name, and the developers were hoping to receive an exception from appwrite.
Steven
22 May, 2024, 21:54

IDs are unique. Name as are not

Steven
22 May, 2024, 21:54

As with any validation, you'd need to only expose creates via a function

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