Browse the extensions reference

libraryElementTree

returns LibraryElementTreeNode

Walk presentation arcs down from an element.

Pass structureId to scope the walk to one presentation structure — required when the element participates in multiple statement variants (e.g. classified vs unclassified balance sheet) and a blended tree would misrepresent any single layout.

Arguments

NameTypeDescription
idID!The element to walk down from.
maxDepthIntHow many arc levels to follow. Omit for unbounded.
structureIdIDScope the walk to one presentation structure. Required where the element appears in several statement variants, since a blended tree misrepresents each.

Returns LibraryElementTreeNode

FieldTypeDescription
elementLibraryElement!
children[LibraryElementTreeNode!]!

Example

query
{ libraryElementTree(id: "rec_...") }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ libraryElementTree(id: \"rec_...\") }"}'