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.