Type Alias: ManyOptions<T>
ManyOptions<
T
>: {foreignKey
: keyofT
|string
| readonly (keyofT
|string
)[];orderBy
: (item
:T
) =>unknown
; }
Options for collection navigation properties.
Type Parameters
Type Parameter |
---|
T extends object |
Type declaration
foreignKey?
optional
foreignKey: keyofT
|string
| readonly (keyofT
|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
Parameter | Type |
---|---|
item | T |
Returns
unknown