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
| Column | Kind | Description |
|---|---|---|
filter | Str | (optional) Filter expression to scope nodes |
root | Ref | (optional) Root entity for scoped subgraph |
depth | Number | (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.