list_relations
List an entity's relations in either direction — one HTTP verb, two wire verbs.
list_relations(entity_id: str, direction=None, type=None, include_superseded=None, include_tombstoned=None, limit=None, cursor=None) -> ListRelationsResultlist_relations_from(request: RelationListFromRequest) -> list[RelationView]
list_relations_from_frames(request: RelationListFromRequest) -> list[RelationListFromResponseFrame]
list_relations_to(request: RelationListToRequest) -> list[RelationView]
list_relations_to_frames(request: RelationListToRequest) -> list[RelationListToResponseFrame]Parameters
entity_idstringrequiredThe entity whose relations to list. Positional on the HTTP tier.
directionstringoptionalWhich way the edges point. The wire tier splits this into two verbs.
typestringoptionalRestrict to one relation type. The wire field is relationTypeFilter.
include_supersededbooleanoptionalInclude non-head versions. Defaults to false.
include_tombstonedbooleanoptionalDefaults to false.
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
relationsRelationDetail[]alwaysThe page.
next_cursorstringAbsent on the last page.
Both wire verbs have a frame-level form — list_relations_from_frames and
list_relations_to_frames — and both add timeRangeStartUnixNanos /
timeRangeEndUnixNanos, which the HTTP tier does not expose.
On the wire
Entity ids are UUID bytes, properties is a propertiesBlob, and evidence
is a single reference rather than an array. Every request carries a
requestId plus an optional actAs.
Was this page helpful?