Skip to main content

Type Alias: ManyOptions<T>

ManyOptions<T>: {foreignKey: keyof T | string | readonly (keyof T | string)[];orderBy: (item: T) => unknown; }

Options for collection navigation properties.

Type Parameters

Type Parameter
T extends object

Type declaration

foreignKey?

optional foreignKey: keyof T | string | readonly (keyof T | string)[]

The foreign key properties that reference the target entity.

orderBy()?

optional orderBy: (item: T) => unknown

A default order by expression for the collection.

Parameters

ParameterType
itemT

Returns

unknown

Defined in

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