Join Slack
Powered by
Is the column type id: ID! @id guaranteed to be u...
# orm-help
c
Chad H
08/08/2019, 2:47 AM
Is the column type id: ID! @id guaranteed to be unique across all tables?
j
Jo
08/08/2019, 5:09 AM
Not necessarily. For what kind of database is this?
c
Chad H
08/08/2019, 9:55 AM
Hi it's MySQL
h
Harshit
08/08/2019, 10:48 AM
Actually it is. We generate a cuid with @id directive.
https://github.com/ericelliott/cuid/blob/master/README.md
Chances of collision are very very low
Open in Slack
Previous
Next