Skip to main content

BigIntMoneyStrategy

A MoneyStrategy that stores monetary values as a bigint type in the database, which allows values up to ~9 quadrillion to be stored (limited by JavaScript's MAX_SAFE_INTEGER limit).

This strategy also slightly differs in the way rounding is performed, with rounding being done after multiplying the unit price, rather than before (as is the case with the DefaultMoneyStrategy.

Signature

moneyColumnOptions

propertyColumnOptions

precision

property

round

method(value: number, quantity: = 1) => number
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page