Relate

Function: referenceInput()

function referenceInput<O>(object, options?): ZodType<ObjectId<O["id"]>, ObjectId<O["id"]>>;

Defined in: packages/relate/src/index.ts:35

A string on the wire and in memory; no wrapper, lookup, or access grant. Typed calls require an already branded ID. Use .parse(unknown) at external boundaries to validate a nonblank string and declare its expected object type. Parsing cannot establish existence, actual object type, or authorization.

Type Parameters

Type Parameter
O extends Pick<ObjectDefinition, "id" | "properties">

Parameters

ParameterType
objectO
options?{ description?: string; }
options.description?string

Returns

ZodType<ObjectId<O["id"]>, ObjectId<O["id"]>>

On this page