Skip to main content

Type alias: RawModelRelation<T, R>

RawModelRelation<T, R>: object & ModelRelationConfig & RawModelProp<T, R> & FosciaObject<typeof SYMBOL_MODEL_PROP_RELATION>

Raw definition for a model's relation.

Type declaration

$RELATION_TYPE

$RELATION_TYPE: ModelRelationType

model()?

optional model: () => Awaitable <Model | Model[]>

Returns

Awaitable <Model | Model[]>

Type parameters

T = any

R extends boolean = boolean

Source

packages/core/src/model/types.ts:155