A MapOperation is one that expect an old value to be available.
A MapOperation is one that expect an old value to be available.
The modify
operation applies a function on the (converted) value
The modify
operation applies a function on the (converted) value
The modifyOrDeleteField
operation works together with the optionalField
lens.
The modifyOrDeleteField
operation works together with the optionalField
lens.
The passed function is called for every existing field. If the function returns
Some(value)
, this will become the new value. If the function returns None
the
field will be deleted.
The set operation sets or creates a value.
The set operation sets or creates a value.
The setOrUpdateField
operation sets or updates an optionalField.
The setOrUpdateField
operation sets or updates an optionalField.
The updateOptionalField
operation works together with the optionalField
lens.
The updateOptionalField
operation works together with the optionalField
lens. It allows
to a) create a previously missing field b) update an existing field value c) remove an existing
field d) ignore a missing field.