Skip to main content
Paginate elements in a graph session object. Elements are sorted by 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

When ids_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 its value.type is not "graph".
  • invalid_cursor — the cursor is malformed or has expired.

Example

See also