Join Slack
Powered by
hello, how can I check if a `Decimal` in prisma is...
# orm-help
d
Dev__
10/19/2021, 7:43 AM
hello, how can I check if a
Decimal
in prisma is higher than 0. if I use
>
operators TS says it
cannot be applied to types 'Decimal'
r
Ryan
10/19/2021, 7:44 AM
The Decimal type is based on the Decimal.js library, so you can use
this
method to check.
d
Dev__
10/19/2021, 7:45 AM
ah i see, thanks 🙂
👍 1
Open in Slack
Previous
Next