POST /revisions/:id/data/query (Command: get_session_graph_element)
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
engine | string | Yes | Must be workflow_blobhub. |
command | string | Yes | Must be get_session_graph_element. |
session_id | string | Yes | The ID of the session that owns the graph envelope. |
alias | string | Yes | Alias of the graph session object. |
element_id | string | Yes | The id of the vertex or edge to retrieve. |
Response
| Parameter | Type | Description |
|---|---|---|
element | object | The retrieved vertex or edge. |
Errors
invalid_graph_envelope— the alias does not exist or itsvalue.typeis not"graph".not_found(404) — no element with thatelement_idexists in the graph.
Example
See also
- Graph session object — envelope shape and element schema.
- Apply Session Graph Mutations — write vertices and edges.
- Get Session Graph Elements — fetch multiple elements by id in one call.
- List Session Graph Elements — paginate all elements.
- List Session Graph Neighbors — fetch neighbors of a set of vertices.
- Query Session Graph — traverse the graph with a query AST.

