Reference·JavaScript · @bimworks/jssdkJavaScript

QueryColumn

Interface in @bimworks/jssdk.

API catalogue · @bimworks/jssdk · Interface

TypeScript#
interface QueryColumn

One entry of the columns table of a query answer: a GET item, its alias, and where its value is in a record. Label a column with label and read its values at path; you need not know where BIM.works writes each kind of feature, or what an alias does to that.

Members#

Member Kind Description
added Property True for an entry the server added rather than the query.
aggregate Property The aggregate's keyword (COUNT, SUM, COLLECT, ...), on an aggregate column.
alias Property The AS alias, null without one.
columns Property The items inside a relation, or the features of a COLLECT, relative to one element of this column's value.
groupKey Property True for a group key of a grouped result.
hidden Property True for an item the workspace's feature visibility hides; it has no values.
item Property The index of the item in the GET list (or in its relation's list); absent for an entry the server added, such as the qid of forceGetQid.
kind Property The feature family, for styling: attribute, property, quantity, calculated, type, ...
label Property The header to show: the alias, else the text.
path Property The keys from the record (for a nested column, from one element of its parent's value) to the value. An array, because keys hold dots. "*" stands for every…
source Property The item as BQL text, without its alias.
unit Property The unit of the item's UNIT clause, as written.

added#

TypeScript#
added?: boolean

True for an entry the server added rather than the query.

aggregate#

TypeScript#
aggregate?: string

The aggregate's keyword (COUNT, SUM, COLLECT, ...), on an aggregate column.

alias#

TypeScript#
alias: string | null

The AS alias, null without one.

columns#

TypeScript#
columns?: (QueryColumn)[]

The items inside a relation, or the features of a COLLECT, relative to one element of this column's value.

groupKey#

TypeScript#
groupKey?: boolean

True for a group key of a grouped result.

hidden#

TypeScript#
hidden?: boolean

True for an item the workspace's feature visibility hides; it has no values.

item#

TypeScript#
item?: number

The index of the item in the GET list (or in its relation's list); absent for an entry the server added, such as the qid of forceGetQid.

kind#

TypeScript#
kind?: string

The feature family, for styling: attribute, property, quantity, calculated, type, ...

label#

TypeScript#
label?: string

The header to show: the alias, else the text.

path#

TypeScript#
path?: (string)[]

The keys from the record (for a nested column, from one element of its parent's value) to the value. An array, because keys hold dots. "*" stands for every key at that level; an array met on the way holds one value per element. Absent when the item writes nothing into the records (a feature the workspace hides).

source#

TypeScript#
source?: string

The item as BQL text, without its alias.

unit#

TypeScript#
unit?: string

The unit of the item's UNIT clause, as written.