Direction Overview
Direction Properties
Direct (Forward) Direction
Thedirect property defines the navigation property created on the source (from) entity type:
| Name | Type | Default | Description |
|---|---|---|---|
direct | object | None | Forward navigation property definition created on the source entity type. |
direct.name | string | Required | Property name for traversing from source to target entities. Used in column bindings and queries. |
direct.constraints | object | None | Optional constraint configuration for filtering accessible entities through this direction. |
Back (Reverse) Direction
Theback property defines the navigation property created on the target (to) entity type:
| Name | Type | Default | Description |
|---|---|---|---|
back | object | None | Reverse navigation property definition created on the target entity type. |
back.name | string | Required | Property name for traversing from target back to source entities. Used in column bindings and queries. |
back.constraints | object | None | Optional constraint configuration for filtering accessible entities in the reverse direction. |
Alternative Naming with fromNavPropName / toNavPropName
An alternative syntax uses flat property names instead of the nested direct/back objects:
| Name | Type | Default | Description |
|---|---|---|---|
fromNavPropName | string | None | Name of the navigation property added to the from entity type for accessing related to entities. Equivalent to direct.name. |
toNavPropName | string | None | Name of the navigation property added to the to entity type for accessing related from entities. Equivalent to back.name. |
Nested Direct/Back Syntax
Flat Naming Syntax
Navigation with Constraints
Thedirect/back syntax supports attaching constraints to individual navigation directions, enabling context-aware filtering on expansion paths:
userNeeds back-navigation property is filtered to only include items from documents with the same component as the source entity’s document.
Using Navigation Properties in Column Bindings
Navigation property names become the segments of dot-separated binding paths in sheet configuration columns:<navigationPropertyName>.<entityTypeName>.<fieldName>.
Expansion Paths and Sources
Navigation property names are also used in thesources expansion configuration to load related entities:
Property-Level Navigability
Thenavigability property on data properties controls whether a property can be used for relationship traversal:
| Value | Description |
|---|---|
unidirectional | Relationship can only be traversed from source to target. |
bidirectional | Relationship can be traversed in both directions. |
The exact navigability values and their behavior may vary. Verify with your Powersheet version.
Complete YAML Example
Related pages: Relationships | Cardinality | Binding Syntax | Sources | Expand Clause
Sources
Sources
KB ArticlesSource Code
Direction.javaRelationship.javaprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints-base.yamlProperty.javaprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints_create_only.yaml