Skip to content

resolveNullableSaveValues

resolveNullableSaveValues(props): Record<string, unknown>

Defined in: packages/core/src/fields/utils.ts:337

Applies resolveNullableSaveValue across a values record keyed by field key — the save-path counterpart of getFieldsDefaultValues. A key with no matching data field (filtered out upstream, or not a declared field) passes through unchanged.

Input props.

Record<string, AdminField>

The resource’s resolved field map.

Record<string, unknown>

The form values about to be submitted.

Record<string, unknown>

A new record with every field’s undefined value, and every nullable scalar field’s empty value, replaced by null.