DependentTypeRelations interface
One relation from the decorated class to a dependent class: where the loaded objects are attached, and how they are matched.
Signature:
export interface DependentTypeRelations
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The name of the field on the decorated class the loaded objects are written to. It must be a field of the generated GraphQL type, or the hook throws | ||
|
{ [foreignField: string]: string; } |
How to find the dependent objects belonging to each instance: each key is a field of the *dependent* type that its loader filters on, and each value is the field on the *decorated* class supplying the values. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.