The select clause is primarily managed internally by the Powersheet query framework. Most configurations do not need to specify a select clause explicitly — the system automatically determines required properties based on column bindings and expand paths.
Select Clause Properties
| Name | Type | Default | Description |
|---|---|---|---|
select | array of string | All properties | List of property names to include in query results. When omitted, all properties of the entity type are returned. |
Query-Level Usage
In the query API, the select clause is specified as an array of property path strings:Automatic Property Inclusion
The query framework automatically ensures that key properties are always included in the select clause, even if not explicitly specified:| Auto-Included Property | Reason |
|---|---|
id | Entity identification |
$type | Entity type resolution |
entityTypeName | Domain model type mapping |
updated | Change tracking and cache invalidation |
project | Project scoping |
YAML Configuration Context
The select clause is not directly exposed in the sheet configuration YAML. Instead, the required properties are derived from:- Column bindings — each column’s binding path determines which properties to fetch
- Display property — the
displaysetting on reference columns adds the display field to selection - Formatters — conditional formatting expressions reference properties that must be loaded
- Constraints — runtime constraints may require additional properties for evaluation
Data Source Query Clause
The data source query definition in the API supports additional clauses alongsideselect:
| Clause | Type | Description |
|---|---|---|
from | string | Root entity type |
where | object | Filter predicates |
orderBy | array | Sort specification |
select | array | Property projection |
take | number | Maximum number of results to return |
top | number | Alias for take |
Result Size Control
In addition to projecting specific properties, the query framework supports limiting the number of results:| Property | Type | Default | Description |
|---|---|---|---|
take | number | Unlimited | Maximum number of entities to return |
top | number | Unlimited | Alias for take |
Complete YAML Example
While the select clause is not directly exposed in YAML, the following configuration demonstrates how the column definitions implicitly determine the selected properties:id, title, status, priority, $type, entityTypeName, updated, and project.
Related Pages
- EntityQuery — top-level query containing the select clause
- Columns — column definitions that drive property selection
- Column Properties — individual column settings
- Sources — data source query configuration
Sources: Code: document.ts (DataSourceQueryDTO), QueryManager.tsx, PolarionQueryProcessor.java, Constraints.java
Sources
Sources
Source Code
powersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/cypress/e2e/Sheet/reference.spec.tsGenericQueryResolver.javaprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_currentDocument_downstream.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/api/document.ts