getRelation
Read one relation, including its symmetry flag and its place in the supersession chain.
getRelation(relationId: string, query?: GetRelationQuery): Promise<RelationDetail>getRelation(request: RelationGetRequest): Promise<RelationGetResponse>Parameters
relationIdstringrequiredThe relation to read.
followSupersessionbooleanoptionalFollow the chain to its head. Defaults to true — so the id you get back may not be the one you asked for.
Returns
relationId / relationType / fromEntity / toEntity—alwaysThe edge.
confidencefloatalwaysConfidence in [0, 1].
validFromUnixNanos / validToUnixNanos64-bit integeralwaysThe interval it holds over.
isSymmetricbooleanalwaysWhether the schema declares the type symmetric — in which case the reverse direction holds without a second relation.
version / supersedes / supersededBy / chainRoot—alwaysPosition in the chain. Store chainRoot when you mean the relationship rather than one version of it.
propertiesstringThe opaque blob, when set.
The wire RelationView additionally exposes flags, extractedAtUnixNanos
and tombstonedAtUnixNanos, which the HTTP RelationDetail omits.
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?