Skip to main content

Function: many()

many<T>(target: string | Newable<T> | EntityModel<T, any>, options?: ManyOptions<T>): Property<T[]>

Adds a collection navigation property to the entity and allows for configuration of the property.

Type parameters

Type parameter
T extends object

Parameters

ParameterTypeDescription
targetstring | Newable<T> | EntityModel<T, any>The target entity class or name.
options?ManyOptions<T>The options for the collection navigation property.

Returns

Property<T[]>

Source

packages/verse-core/src/model/builder.ts:755