query.foreignKeysMap() function

Returns foreign key map for a given pair of parent model and related model.

Signature:

export function foreignKeysMap(parent: typeof BaseModel, model: typeof BaseModel): ForeignKeyMap | null;

Parameters

Parameter

Type

Description

parent

typeof BaseModel

Model on the referenced side.

model

typeof BaseModel

Model whose foreign keys are wanted.

Returns:

ForeignKeyMap | null

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.