Check out my new plugin: lazy formula field!

@bunnarin/plugin-field-lazy-formula

differences from the @nocobase/plugin-field-formula

it doesn’t store in the database, and will only be computed on read (so that it save storage space)

it has a new engine: javascript


const diffYear = new Date().getFullYear() - new Date({{birthday}}).getFullYear();

return diffYear;

// string interpolation

return `birthday: ${{{birthday}}}`