Skip to main content

handle_tree

Function handle_tree 

Source
pub async fn handle_tree(
    req: HttpRequest,
    body: String,
    state: Data<AppState>,
) -> Result<HttpResponse, HaystackError>
Expand description

Returns a hierarchical subtree from a root entity.

§Request Grid Columns

ColumnKindDescription
rootRefRoot entity to start tree from
maxDepthNumber(optional) Maximum tree depth (default 10)

§Response Grid Columns

All entity tags plus: depth, parentId, navId.