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

x/cotton/src/utils/models.ts>getRelationValues

SQL Database Toolkit for Deno
Latest
function getRelationValues
import { getRelationValues } from "https://deno.land/x/cotton@v0.7.5/src/utils/models.ts";

Get relational values in a model.

Parameters

model: Object

the model object you want to check the relations

optional
relations: string[]

include specific relation names and ignore the rest