Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/typeorm/src/find-options/JoinOptions.ts>JoinOptions

Forked from https://github.com/typeorm/typeorm
Latest
interface JoinOptions
import { type JoinOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/find-options/JoinOptions.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.