Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

Get all relationship definitions from a model.

Parameters

modelClass: Function

the model class you want to get the information from.

optional
includes: string[]

include several relations and ignore the rest.