Back

Enum value or Enum Collection?

  • 0
  • Databases
  • Web
Rise
28 Nov, 2023, 01:46

Hello, all, I'm new to appwrite as well as creating a database. I searched around the documentation but I'm not sure what I found answers my question. So to pose it here: For countries and US states, would it be better to create a collection for states and countries, respectively? Or should I create an enum attribute for each? I figured that for days of the week, an enum attribute would be okay to use and just add the elements to it. But it seems that for US states and countries, that's a long list to add into enum attributes. Thank you.

TL;DR
The user is seeking advice on whether to create a collection or use an enum attribute for countries and US states in an appwrite database. They believe enum attributes should be used for days of the week but are unsure about the feasibility of using them for longer lists like US states and countries.
Drake
28 Nov, 2023, 01:58

Maybe enum because it doesn't change that 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