Given the following model
@Model()
export class B extends Resource {
@Field()
public id: string;
}
@Model()
export class A extends Resource {
@Field()
public id: string;
@ToMany()
public toManyB: ToOneRelation<A,B>;
}
Allow for
a = new A();
await a.toManyB.fetch();