Skip to main content

Function: hasMany()

hasMany(config)

hasMany<I>(config?): PendingModelRelation<I, false>

Type parameters

I extends null | object[] = ModelInstance[]

Parameters

config?: string | string[] | ModelRelationConfig

Returns

PendingModelRelation<I, false>

Source

packages/core/src/model/props/builders/hasMany.ts:12

hasMany(resolver)

hasMany<M>(resolver): PendingModelRelation <PendingModelRelationInstance<M>[], false>

Type parameters

M extends object | object[]

Parameters

resolver

Returns

PendingModelRelation <PendingModelRelationInstance<M>[], false>

Source

packages/core/src/model/props/builders/hasMany.ts:15