Hey there, out of curiosity, what is the difference between passing ID.custom(id) to a document ID instead of a custom string variable? I mean, if I'm going to call this function and pass my custom ID to it, couldn't I just pass my custom ID directly? It doesn't make any sense to me
Summary
The user is asking about the difference between using ID.custom(id) and a custom string variable as the document ID in an app called Appwrite. They believe that using ID.custom(id) doesn't make sense and that they could simply pass their custom ID directly. The solution is to explain that ID.custom(id) is used to explicitly indicate that the ID being passed is a custom ID, while using a custom string variable may not be as clear.
Sometimes I need to assign the same ID to multiple documents stored in different collections (belonging to a particular user). This helps me retrieve these documents easily when needed without having to create any indexes