How do I use NumberDecimal() within Node.js?

It is defined as Decimal128 in NodeJS MongoDB driver.

The static method Decimal128.fromString(string) can be used to create a Decimal128 instance from a string.

2 Likes