Module

x/denodb/mod.ts>Model.hasOne

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.hasOne
import { Model } from "https://dotland.deno.dev/x/denodb@v1.4.0/mod.ts";

Find associated values for the given model for one-to-one and one-to-many relationships.

Type Parameters

T extends ModelSchema

Parameters

this: T
model: ModelSchema