FeaturePath
Class in @bimworks/jssdk.
API catalogue · @bimworks/jssdk · Class
TypeScript#
class FeaturePathReads the values of a query's GET columns from its result records
Members#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| columns | Method | The columns of one GET feature (usually one; a relation with several sub features gives one per sub feature) |
| firstText | Method | The text of the first GET column (qid aside) with a plain value in this record, null when there is none |
| queryColumns | Method | All result columns of a parsed query, in GET order |
| resolveColumn | Method | The values of a column in a result record |
constructor#
TypeScript#
constructor()columns#
TypeScript#
static columns(singleFeature: QueryNode, siblings?: (QueryNode)[]): (FeaturePathColumn)[]The columns of one GET feature (usually one; a relation with several sub features gives one per sub feature)
Parameters#
| Name | Type | Description |
|---|---|---|
singleFeature |
QueryNode | |
siblings |
(QueryNode)[] |
firstText#
The text of the first GET column (qid aside) with a plain value in this record, null when there is none
Parameters#
| Name | Type | Description |
|---|---|---|
ast |
QueryNode | |
record |
object |
queryColumns#
TypeScript#
static queryColumns(ast: QueryNode): (FeaturePathColumn)[]All result columns of a parsed query, in GET order
Parameters#
| Name | Type | Description |
|---|---|---|
ast |
QueryNode |
resolveColumn#
TypeScript#
static resolveColumn(record: object, column: FeaturePathColumn): (unknown)[]The values of a column in a result record
Parameters#
| Name | Type | Description |
|---|---|---|
record |
object |
|
column |
FeaturePathColumn |