Kaizen
Browse modulesPersistenceFunctions

Function: fromJsonColumn()

function fromJsonColumn<T>(value: JsonValue): T;

Defined in: server/persistence/json-column.ts:40

Re-applies the domain type validated before a value was written to a Prisma JSON column. Keep JSON read assertions paired with the write boundary above instead of scattering casts through models and repositories.

Type Parameters

Type Parameter
T

Parameters

ParameterType
valueJsonValue

Returns

T

On this page