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

    Used to specify what entity relations should be loaded.

    Example: const options: JoinOptions = { alias: "photo", leftJoin: { author: "photo.author", categories: "categories", user: "categories.user", profile: "user.profile" }, innerJoin: { author: "photo.author", categories: "categories", user: "categories.user", profile: "user.profile" }, leftJoinAndSelect: { author: "photo.author", categories: "categories", user: "categories.user", profile: "user.profile" }, innerJoinAndSelect: { author: "photo.author", categories: "categories", user: "categories.user", profile: "user.profile" } };

    interface JoinOptions {
        alias: string;
        innerJoin?: { [key: string]: string };
        innerJoinAndSelect?: { [key: string]: string };
        leftJoin?: { [key: string]: string };
        leftJoinAndSelect?: { [key: string]: string };
    }
    索引

    属性

    alias: string

    Alias of the main entity.

    innerJoin?: { [key: string]: string }

    Object where each key represents the INNER JOIN alias, and the corresponding value represents the relation path.

    This method does not select the columns of the joined table.

    innerJoinAndSelect?: { [key: string]: string }

    Object where each key represents the INNER JOIN alias, and the corresponding value represents the relation path.

    The columns of the joined table are included in the selection.

    leftJoin?: { [key: string]: string }

    Object where each key represents the LEFT JOIN alias, and the corresponding value represents the relation path.

    This method does not select the columns of the joined table.

    leftJoinAndSelect?: { [key: string]: string }

    Object where each key represents the LEFT JOIN alias, and the corresponding value represents the relation path.

    The columns of the joined table are included in the selection.