UNPKG

765 BTypeScriptView Raw
1import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
2/**
3 * Arguments for RelationCountMetadata class.
4 */
5export interface RelationCountMetadataArgs {
6 /**
7 * Class to which this decorator is applied.
8 */
9 readonly target: Function;
10 /**
11 * Class's property name to which this decorator is applied.
12 */
13 readonly propertyName: string;
14 /**
15 * Target's relation which it should count.
16 */
17 readonly relation: string | ((object: any) => any);
18 /**
19 * Alias of the joined (destination) table.
20 */
21 readonly alias?: string;
22 /**
23 * Extra condition applied to "ON" section of join.
24 */
25 readonly queryBuilderFactory?: (qb: SelectQueryBuilder<any>) => SelectQueryBuilder<any>;
26}