---
title: QueryColumn
summary: Interface in @bimworks/jssdk.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/jssdk
---

# QueryColumn

[[page:reference/javascript/api|API catalogue]] · `@bimworks/jssdk` · Interface

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
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 |
|---|---|---|
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-added-decf2d17dfbf|added]] | Property | True for an entry the server added rather than the query. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-aggregate-175f98e2c2c0|aggregate]] | Property | The aggregate's keyword (COUNT, SUM, COLLECT, ...), on an aggregate column. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-alias-763549ae8cc8|alias]] | Property | The AS alias, null without one. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-columns-665cb17a2e6b|columns]] | Property | The items inside a relation, or the features of a COLLECT, relative to one element of this column's value. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-groupkey-e00cfaa3ef3c|groupKey]] | Property | True for a group key of a grouped result. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-hidden-48d095565f52|hidden]] | Property | True for an item the workspace's feature visibility hides; it has no values. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-item-94480e0f5f7c|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. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-kind-b7e05ea53d99|kind]] | Property | The feature family, for styling: attribute, property, quantity, calculated, type, ... |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-label-908580b24e22|label]] | Property | The header to show: the alias, else the text. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-path-b6af257dd544|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… |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-source-29ec670f9b55|source]] | Property | The item as BQL text, without its alias. |
| [[page:reference/javascript/bimworks-jssdk/querycolumn-f16abf46#member-unit-5c29c9ead4d3|unit]] | Property | The unit of the item's UNIT clause, as written. |

## `added` {#member-added-decf2d17dfbf}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
added?: boolean
````

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

## `aggregate` {#member-aggregate-175f98e2c2c0}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
aggregate?: string
````

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

## `alias` {#member-alias-763549ae8cc8}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
alias: string | null
````

The AS alias, null without one.

## `columns` {#member-columns-665cb17a2e6b}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
columns?: (QueryColumn)[]
````

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

## `groupKey` {#member-groupkey-e00cfaa3ef3c}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
groupKey?: boolean
````

True for a group key of a grouped result.

## `hidden` {#member-hidden-48d095565f52}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
hidden?: boolean
````

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

## `item` {#member-item-94480e0f5f7c}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
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` {#member-kind-b7e05ea53d99}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
kind?: string
````

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

## `label` {#member-label-908580b24e22}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
label?: string
````

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

## `path` {#member-path-b6af257dd544}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
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` {#member-source-29ec670f9b55}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
source?: string
````

The item as BQL text, without its alias.

## `unit` {#member-unit-5c29c9ead4d3}

````typescript sdk=js sdk-namespace="@bimworks/jssdk"
unit?: string
````

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