You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the generated CUID id looks the same for all collections.
It could be useful to prefix id with collection name and id_ so we can check if the value is an id and which collection it belongs to:
var value = id_project_clkl5glym00005gpjgwdyhbnb
var [marker, collection, id] = value.split('_')
if (value.startsWith('id_')) {
// is id
}
Unrelated, but worth mentioning, internally the 'id' should probably be 'project_id' everywhere so we know what kind of id we are dealing with, as a "best practice" measure?
The text was updated successfully, but these errors were encountered:
At the moment the generated CUID id looks the same for all collections.
It could be useful to prefix id with collection name and id_ so we can check if the value is an id and which collection it belongs to:
Unrelated, but worth mentioning, internally the 'id' should probably be 'project_id' everywhere so we know what kind of id we are dealing with, as a "best practice" measure?
The text was updated successfully, but these errors were encountered: