Join Slack
Powered by
Hello all, Is type "ID" invalid in prisma2 ?
# orm-help
j
Jayanth
08/27/2020, 9:53 AM
Hello all, Is type "ID" invalid in prisma2 ?
r
Ryan
08/27/2020, 9:55 AM
Yes the data modelling syntax has changed from Prisma 1. You can read more about that here in the
docs
.
j
Jayanth
08/27/2020, 9:55 AM
Thank you Ryan.
r
Ryan
08/27/2020, 9:55 AM
For id, you can use:
Copy code
id Int @id
in your model
👍 1
j
Jayanth
08/27/2020, 9:58 AM
Yea, I found this
https://www.prisma.io/docs/guides/upgrade-guides/upgrade-from-prisma-1
💯 1
3
Views
Open in Slack
Previous
Next