Hi sorry if this is a bit of a noob question. Im trying to access the âdecimalâ column in my afterSave âBscTransactionsâ cloud trigger.
how do I actually get the value? when i try to log the return i get the following:
in my afterSave trigger i am getting the decimal object like so:
const value = request.object.get("decimal");
logger.info("afterSave BscTransactions value " + JSON.stringify(value));
which logs out:
afterSave BscTransactions value {"__type":âNumberDecimalâ,âvalueâ:{"$numberDecimal":â0.01â}}
now my question is how do I actually get the value for the decimal which is â0.01â. i have tried accessing via value.value.$numberDecimal
but that doesnt work.
any help please as there seems to be zero documentation on this from what I could find.
thanks