Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denodb/lib/model.ts>Model.leftOuterJoin

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.leftOuterJoin
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.ts";

Join a table with left outer statement to the current query.

await Flight.where(
  Flight.field("departure"),
  "Paris",
).leftOuterJoin(
  Airport,
  Airport.field("id"),
  Flight.field("airportId"),
).get()

Type Parameters

T extends ModelSchema

Parameters

this: T
joinTable: ModelSchema
originField: string
targetField: string