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

x/denogres/src/class/Association.ts>HasOne

Deno + PostgreSQL = DenoGres
Go to Latest
class HasOne
extends Association
import { HasOne } from "https://deno.land/x/denogres@v0.7.0-alpha/src/class/Association.ts";

Constructors

new
HasOne(
source: Model,
target: Model,
mappingDetails: mappingDetails,
query: string,
)

Properties

addAccesorName: string
association_name: string
foreignKey_ColumnName
getAccesorName: string
targetModel_MappindColumnName

Methods

addAssociatedData(instance: any, values: any)
getAssociatedData(instance: any, options?: any)