Skip to main content
Module

x/typeorm/src/index.ts>JoinOptions

Forked from https://github.com/typeorm/typeorm
Latest
interface JoinOptions
Re-export
import { type JoinOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

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" } };

Properties

alias: string

Alias of the main entity.

optional
leftJoinAndSelect: { [key: string]: string; }

Array of columns to LEFT JOIN.

optional
innerJoinAndSelect: { [key: string]: string; }

Array of columns to INNER JOIN.

optional
leftJoin: { [key: string]: string; }

Array of columns to LEFT JOIN.

optional
innerJoin: { [key: string]: string; }

Array of columns to INNER JOIN.