Join Slack
Powered by
Hello All, How can i assign a float type with 2 pr...
# orm-help
k
Kishan Das
04/12/2021, 6:34 AM
Hello All, How can i assign a float type with 2 precision value in prisma schema models?
Kishan Das
04/12/2021, 7:03 AM
?
r
Ryan
04/12/2021, 7:44 AM
You can use
@db.decimal
as shown
here
.
k
Kishan Das
04/12/2021, 8:08 AM
I m using prisma 2.10.0 and the above @db.decimal is supported in it?
r
Ryan
04/12/2021, 8:11 AM
No you would need to upgrade to 2.17.0 or above.
k
Kishan Das
04/12/2021, 8:11 AM
Okay
10
Views
Open in Slack
Previous
Next