graph_fetch
A cursor-paged node and edge view of the space, for drawing — not a query.
async fn graph_fetch(&self, query: &GraphFetchQuery) -> Result<GraphPage, BrainHttpError>async fn graph_fetch(&self, request: &GraphFetchRequest) -> Result<(Vec<GraphNode>, Vec<GraphEdge>)>
async fn graph_fetch_frames(&self, request: &GraphFetchRequest) -> Result<Vec<GraphFetchResponseFrame>>Parameters
ParameterTypeRequired
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
include_statementsbooleanoptionalInclude statement nodes.
include_memoriesbooleanoptionalInclude memory nodes.
include_memory_edgesbooleanoptionalInclude memory-to-memory edges.
include_tombstonedbooleanoptionalInclude tombstoned nodes. Defaults to false.
Returns
FieldTypePresence
nodesGraphNode[]alwaysEach with id, kind, label and typeQname.
edgesGraphEdge[]alwaysEach with fromId, toId, kind and label.
next_cursorstringAbsent on the last page.
Turn the includes off for a large space
With every include on, a graph page is the whole store rendered as nodes. Fetch what you will actually draw — a visualisation that cannot show ten thousand nodes should not ask for them.
See also
Was this page helpful?