API 参考
    正在准备搜索索引...

    类型别名 Relation<T>

    Relation: T

    Wrapper type for relation type definitions in entities. Used to circumvent ESM modules circular dependency issue caused by reflection metadata saving the type of the property.

    Usage example: @Entity() export default class User {

    @OneToOne(() => Profile, profile => profile.user)
    profile: Relation<Profile>;
    

    }

    类型参数

    • T