Back

Using a custom ID and ensuring it's not already in use

  • 1
  • Databases
  • Web
  • Cloud
larkx
15 Mar, 2024, 00:25

Hello, I want to create documents with a custom ID (specifically numerical, counting up from 1), but what's the best way to ensure an ID isn't already in use? And with that, how would I go about generating the custom ID to pass through?

TL;DR
Developers are seeking advice on using a custom numerical ID that counts up from 1 for documents. They also need help ensuring the ID isn't already in use. The solution is to generate the custom ID programmatically and check it against existing IDs before assigning.
jesus
15 Mar, 2024, 00:59

.

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