Skip to main content

OneToMany

@quik/database


@quik/database / Relation / OneToMany

Function: OneToMany()

OneToMany<TModel>(options): any

Defined in: database/src/decorators/Relation.ts:149

One-to-many relationship decorator.

Type Parameters​

TModel​

TModel extends QModel = QModel

Parameters​

options​

QRelationDefinition<TModel> & object

Relation configuration including the required ownField property

Returns​

any