POST /revisions/:id/data/query (Command: get_session_graph_elements)
Ids that do not exist in the graph are silently omitted from the response (no error is raised for
missing ids). This makes the command safe to use for cache-warming after receiving a
session_graph_changed event: pass all changed element_id values from the event’s changes
array and the server returns whichever still exist.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
engine | string | Yes | Must be workflow_blobhub. |
command | string | Yes | Must be get_session_graph_elements. |
session_id | string | Yes | The ID of the session that owns the graph envelope. |
alias | string | Yes | Alias of the graph session object. |
element_ids | array of string | Yes | The ids of the vertices or edges to retrieve. |
Response
| Parameter | Type | Description |
|---|---|---|
elements | array of object | The retrieved elements. Missing ids are omitted; order is not guaranteed. |
Errors
invalid_graph_envelope— the alias does not exist or itsvalue.typeis not"graph".
Example
See also
- Graph session object — envelope shape and element schema.
- Apply Session Graph Mutations — write vertices and edges.
- Get Session Graph Element — fetch a single element by id.
- 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.
session_graph_changedevent — usechanges[].element_idvalues as input to this command to sync a local cache.

