Function: Relation()
Relation<
S
>(schema
):Field
<{insert
:optional
<Array$
<typeofString$
>>;select
:Schema
<readonlyEntityWithRelation
<S
>[], readonlyEntityWithRelation
<S
>[],never
>;update
: typeofUndefined
; }>
Defined in: packages/hypergraph/src/type/type.ts:23
Type Parameters
S
S
extends AnyNoContext
Parameters
schema
S
Returns
Field
<{ insert
: optional
<Array$
<typeof String$
>>; select
: Schema
<readonly EntityWithRelation
<S
>[], readonly EntityWithRelation
<S
>[], never
>; update
: typeof Undefined
; }>