Helper functions for managing custom attributes stored in JSONB fields.
For entities that embed attribute data directly (rather than via ASD), this module provides get/put/validate helpers.
The JSONB structure is:
%{
"attribute_set_id_1" => %{"field_a" => "value1", "field_b" => 42},
"attribute_set_id_2" => %{"field_c" => true}
}Top-level keys are attribute set IDs, values are maps of handle → value.
Summary
Functions
Get a single custom attribute value.
Get all custom attributes for a given attribute set.
Set a single custom attribute value. Returns updated entity.
Set all custom attributes for a given attribute set.
Functions
Get a single custom attribute value.
Get all custom attributes for a given attribute set.
Set a single custom attribute value. Returns updated entity.
Set all custom attributes for a given attribute set.