Version: 6.4Methods
- addSelect(fields: string | string[]): this
Parameters
fields: string | string[]
Returns this
- andWhere(cond: QBFilterQuery<T>): this
- andWhere(cond: string, params?: any[]): this
- count(field?: string | string[], distinct?: boolean): this
Parameters
optionalfield: string | string[]
optionaldistinct: boolean
Returns this
Parameters
optionalaliasName: string
Parameters
Returns undefined | string
- getNextAlias(entityName?: string): string
Parameters
optionalentityName: string
Returns string
- groupBy(fields: string | keyof T | (string | keyof T)[]): this
Parameters
fields: string | keyof T | (string | keyof T)[]
Returns this
Parameters
Returns boolean
- innerJoin(field: string, alias: string, cond?: QBFilterQuery): this
Parameters
field: string
alias: string
Returns this
- innerJoinAndSelect(field: string, alias: string, cond?: QBFilterQuery, fields?: string[]): this
Parameters
field: string
alias: string
optionalfields: string[]
Returns this
Parameters
field: string
alias: string
optionalpath: string
Returns this
- joinAndSelect(field: string, alias: string, cond?: QBFilterQuery): this
Parameters
field: string
alias: string
Returns this
- leftJoin(field: string, alias: string, cond?: QBFilterQuery): this
Parameters
field: string
alias: string
Returns this
- leftJoinAndSelect(field: string, alias: string, cond?: QBFilterQuery, fields?: string[]): this
Parameters
field: string
alias: string
optionalfields: string[]
Returns this
- orWhere(cond: QBFilterQuery<T>): this
- orWhere(cond: string, params?: any[]): this
- select(fields: Field<T> | Field<T>[], distinct?: boolean): this
Parameters
optionaldistinct: boolean
Returns this
- where(cond: QBFilterQuery<T>, operator?: $and | $or): this
- where(cond: string, params?: any[], operator?: $and | $or): this
Parameters
optionaloperator: $and | $or
Returns this
- withSubQuery(subQuery: QueryBuilder<any, any>, alias: string): this
Parameters
subQuery: QueryBuilder<any, any>
alias: string
Returns this