NullableIdTransform
NullableIdTransform<
Brand> =object
Defined in: src/adapters/prisma.ts:135
The read/nullable-read/write surface returned by nullableIdField —
mirrors the nullable methods of IdTransform but omits defaultQuery,
read, and computeField since nullable FK columns neither auto-generate IDs
nor require a non-null read path at the top level.
Type Parameters
Section titled “Type Parameters”Brand extends string
Methods
Section titled “Methods”computeNullableField()
Section titled “computeNullableField()”computeNullableField(
fieldName):NullableIdComputeField<Brand>
Defined in: src/adapters/prisma.ts:138
Parameters
Section titled “Parameters”fieldName
Section titled “fieldName”string
Returns
Section titled “Returns”NullableIdComputeField<Brand>
readNullable()
Section titled “readNullable()”readNullable(
value):Id<Brand> |null
Defined in: src/adapters/prisma.ts:136
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Id<Brand> | null
write()
Section titled “write()”write(
value):string|null
Defined in: src/adapters/prisma.ts:137
Parameters
Section titled “Parameters”Id<Brand> | null | undefined
Returns
Section titled “Returns”string | null