The model type for which to define the include tree.
An IncludeTree<T> mirrors the shape of the model class,
where each navigation property can be replaced with another
IncludeTree describing nested joins.
dogs: Dog[], owner: Person) may appear
as keys with empty objects {} or nested trees.Example:
@D1
export class Person {
@PrimaryKey id: number;
@OneToMany("personId") dogs: Dog[];
@DataSource
static readonly default: IncludeTree<Person> = {
dogs: {}, // join Dog table when querying Person
};
}
A recursive type describing which related models to include when querying a
@D1model.