created_at by default; sorting switches to updated_at when updated_since is provided.
POST /revisions/:id/data/query (Command: list_session_graph_elements)
Request Body
updated_since — pass the timestamp of the last-known mutation to retrieve only elements added or
changed since that point. This is the recommended pattern for incremental client syncs after receiving
a session_graph_changed event.
ids_only — when you only need to know which elements exist (e.g. to reconcile a local cache),
set ids_only: true. The response switches from elements to element_ids (lightweight objects
with element_id, type, and rev) and is significantly smaller for large graphs.
Response
Whenids_only is false (default):
When
ids_only is true:
Page size is set by
limit (default 10, max 1000). The opaque cursor + limit contract is shared by every
list_* command; pass the response cursor back verbatim until it is null.
Errors
invalid_graph_envelope— the alias does not exist or itsvalue.typeis not"graph".invalid_cursor— the cursor is malformed or has expired.
Example
See also
- Graph session object — envelope shape and element schema.
- Apply Session Graph Mutations — write vertices and edges.
- Query Session Graph — traverse the graph with a query AST.
- List Session Graph Neighbors — fetch neighbors of a set of vertices.
- Get Session Graph Element — fetch a single element by id.
- Get Session Graph Elements — fetch multiple elements by id.
session_graph_changedevent — real-time delta; useupdated_sinceto fetch the changed elements.

