graphFetch
A cursor-paged node and edge view of the space, for drawing — not a query.
graphFetch(query?: GraphFetchQuery): Promise<GraphPage>graphFetch(request: GraphFetchRequest): Promise<{ nodes, edges }>
graphFetchFrames(request: GraphFetchRequest): Promise<GraphFetchResponseFrame[]>Parameters
ParameterTypeRequired
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
includeStatementsbooleanoptionalInclude statement nodes.
includeMemoriesbooleanoptionalInclude memory nodes.
includeMemoryEdgesbooleanoptionalInclude memory-to-memory edges.
includeTombstonedbooleanoptionalInclude tombstoned nodes. Defaults to false.
Returns
FieldTypePresence
nodesGraphNode[]alwaysEach with id, kind, label and typeQname.
edgesGraphEdge[]alwaysEach with fromId, toId, kind and label.
nextCursorstringAbsent 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?