Decimal128 support

Is Moralis support decimal128 datatype? if yes then how to store and fetch data for it?

Is is somehow supported, at least for the data that is synced automatically in a nitro server, that data can also include columns that are of decimal types.
But I don’t know yet how to use it in a normal query to add a decimal value.

Hi @jeevan.ghule
For nitro servers as mentioned by @cryptokid check this out Moralis Nitro Beta Testing

Other thing you can do is store it as a string and parse it as int in js

You can set value as NumberDecimal
object.set(“priceDecimalValue”, { “__type”: “NumberDecimal”, “value”: “your_value” })

1 Like