listRelations
List an entity's relations in either direction — one HTTP verb, two wire verbs.
listRelations(entityId: string, query?: ListRelationsQuery): Promise<ListRelationsResult>listRelationsFrom(request: RelationListFromRequest): Promise<RelationView[]>
listRelationsFromFrames(request: RelationListFromRequest): Promise<RelationListFromResponseFrame[]>
listRelationsTo(request: RelationListToRequest): Promise<RelationView[]>
listRelationsToFrames(request: RelationListToRequest): Promise<RelationListToResponseFrame[]>Parameters
entityIdstringrequiredThe 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.
includeSupersededbooleanoptionalInclude non-head versions. Defaults to false.
includeTombstonedbooleanoptionalDefaults to false.
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
relationsRelationDetail[]alwaysThe page.
nextCursorstringAbsent on the last page.
Both wire verbs have a frame-level form — listRelationsFromFrames and
listRelationsToFrames — 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?