Patch Field
A property of an update command that tells "not supplied" (Unset) apart from "supplied, possibly as null" (Value).
Gives update commands PATCH semantics: only supplied fields are touched and a field can be explicitly cleared. Has no persistence dependencies, so it can also be used by an HTTP layer.
Inheritors
Functions
Link copied to clipboard
Returns Value of replacement for Value(null), otherwise this field unchanged.
Link copied to clipboard
Same as orKeep for a field that must never be null.
Link copied to clipboard
Returns the supplied collection, or null if the group must not be touched (PatchField.Unset).
Link copied to clipboard
Same as toTargetIdsOrNull for elements that already are raw ids.
Converts this field to the set of target ids a junction relation must be synced to, or null if the relation must not be touched (PatchField.Unset).