get_relation
Read one relation, including its symmetry flag and its place in the supersession chain.
async fn get_relation(&self, relation_id: &str, query: &GetRelationQuery) -> Result<RelationDetail, BrainHttpError>async fn get_relation(&self, request: &RelationGetRequest) -> Result<RelationGetResponse>Parameters
relation_idstringrequiredThe relation to read.
follow_supersessionbooleanoptionalFollow the chain to its head. Defaults to true — so the id you get back may not be the one you asked for.
Returns
relation_id / relation_type / from_entity / to_entity—alwaysThe edge.
confidencefloatalwaysConfidence in [0, 1].
valid_from_unix_nanos / valid_to_unix_nanos64-bit integeralwaysThe interval it holds over.
is_symmetricbooleanalwaysWhether the schema declares the type symmetric — in which case the reverse direction holds without a second relation.
version / supersedes / superseded_by / chain_root—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?