Skip to main content

handle_flow

Function handle_flow 

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

Returns the entity graph formatted for React Flow consumption.

§Request Grid Columns

ColumnKindDescription
filterStr(optional) Filter expression to scope nodes
rootRef(optional) Root entity for scoped subgraph
depthNumber(optional) Max depth from root (default 10)

§Response

Returns a nodes grid with columns: nodeId, nodeType, dis, posX, posY, parentId, plus all entity tags. The grid metadata contains an edges tag with a nested grid of edges.