Skip to main content

patch_value

Function patch_value 

Source
pub fn patch_value(
    base: &ValueWord,
    delta: &Delta,
    schemas: &TypeSchemaRegistry,
) -> ValueWord
Expand description

Apply a delta to a base value, producing the updated value.

For TypedObjects, patches individual fields by path. For arrays, patches individual elements by index. For root-level changes (path “.”), replaces the entire value.