You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lib/src/orm/model/relation/RelationBuilder.ts

15 lines
402 B

import {Model} from '../Model'
import {ModelBuilder} from '../ModelBuilder'
import {Relation} from './Relation'
/**
* ModelBuilder instance that queries the related model in a relation.
*/
export class RelationBuilder<T extends Model<T>> extends ModelBuilder<T> {
constructor(
protected relation: Relation<any, T, any>,
) {
super(relation.related.constructor as any)
}
}