QueryColumn
Interface in @bimworks/jssdk.
API catalogue · @bimworks/jssdk · Interface
interface QueryColumnOne 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#
added?: booleanTrue for an entry the server added rather than the query.
aggregate#
aggregate?: stringThe aggregate's keyword (COUNT, SUM, COLLECT, ...), on an aggregate column.
alias#
alias: string | nullThe AS alias, null without one.
columns#
columns?: (QueryColumn)[]The items inside a relation, or the features of a COLLECT, relative to one element of this column's value.
groupKey#
groupKey?: booleanTrue for a group key of a grouped result.
hidden#
hidden?: booleanTrue for an item the workspace's feature visibility hides; it has no values.
item#
item?: numberThe 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#
kind?: stringThe feature family, for styling: attribute, property, quantity, calculated, type, ...
label#
label?: stringThe header to show: the alias, else the text.
path#
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#
source?: stringThe item as BQL text, without its alias.
unit#
unit?: stringThe unit of the item's UNIT clause, as written.