float Property Method - DML Reference

This method defines a float property that allows for values with decimal places

NoteThis is only available after Medusa v2.1.2.

Example#

Code
1import { model } from "@medusajs/framework/utils"2
3const MyCustom = model.define("tax", {4  tax_rate: model.float(),5  // ...6})7
8export default MyCustom
Was this page helpful?