graph_fetch
A cursor-paged node and edge view of the space, for drawing — not a query.
graph_fetch(limit=None, cursor=None, include_statements=None, ...) -> GraphPagegraph_fetch(request: GraphFetchRequest) -> tuple[list[GraphNode], list[GraphEdge]]
graph_fetch_frames(request: GraphFetchRequest) -> list[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?