hierarchyLevels
query.
Access policy:
Argument | Type | Description | Default |
---|---|---|---|
hierarchyLevelId | ID | Optional. Specific hierarchy level ID to retrieve. If omitted, returns all accessible levels. | — |
hierarchyLevels
query returns HierarchyLevel
objects with the following structure:
Field | Type | Description |
---|---|---|
id | ID! | The unique identifier of the hierarchy level. |
label | String! | The display name of the hierarchy level. |
depth | Int! | The depth of this level in the hierarchy tree (root = 0). |
parent | HierarchyLevel | The parent hierarchy level, if any. |
children | [HierarchyLevel] | The children hierarchy levels, if any. |
hierarchyLevelId
is provided, the query returns detailed information about that specific level including its parent relationship.