InferRelation<
TRelations
,TKey
>:TRelations
[TKey
] extendsManyToOneProperty
<infer TTarget,any
> ?Reference
<TTarget
> :TRelations
[TKey
] extendsOneToOneProperty
<infer TTarget,any
> ?Reference
<TTarget
> :TRelations
[TKey
] extendsOneToManyProperty
<infer TTarget,any
> ?TTarget
extendsobject
?Collection
<TTarget
> :never
:TRelations
[TKey
] extendsManyToManyProperty
<infer TTarget,any
> ?TTarget
extendsobject
?Collection
<TTarget
> :never
:never
• TRelations extends Record
<string
, RelationProperty
<any
, any
>>
• TKey extends keyof TRelations
packages/mikro-orm/src/entity-schema.ts:346