zibri
Preparing search index...
entity/decorators/property.decorator
Property
belongsToOne
Function belongsToOne
belongsToOne
<
T
extends
BaseEntity
,
TJoinKey
extends
string
>
(
metadata
:
BelongsToOnePropertyMetadataInput
<
T
,
TJoinKey
>
,
)
:
<
TCurrentEntity
extends
Partial
<
Record
<
TJoinKey
,
any
>
>
>
(
target
:
TCurrentEntity
,
propertyKey
:
string
|
symbol
,
)
=>
void
Defines a belongs to one property.
Type Parameters
T
extends
BaseEntity
TJoinKey
extends
string
Parameters
metadata
:
BelongsToOnePropertyMetadataInput
<
T
,
TJoinKey
>
Additional data to specify the property.
Returns
<
TCurrentEntity
extends
Partial
<
Record
<
TJoinKey
,
any
>
>
>
(
target
:
TCurrentEntity
,
propertyKey
:
string
|
symbol
,
)
=>
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
zibri
Loading...
Defines a belongs to one property.