Custom Attribute Functions

Define functions for default values.

Project Toolchain Usage

To enable this optional feature, add the customAttributeFunctions element to your optionalFeatures array, then use the generated middleware or extension inside of your code.

Feature Effect

Whenever you attempt a create operation on a model, all fields that have a default function defined in the defaultFunctions configuration property will have their value set to the result of those functions.

Last updated