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.hasOne

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.hasOne
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.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