supersedeRelation
Replace a relation with a new version, keeping the chain readable.
supersedeRelation(relationId: string, input: CreateRelationInput): Promise<SupersedeRelationResult>supersedeRelation(request: RelationSupersedeRequest): Promise<RelationSupersedeResponse>Parameters
ParameterTypeRequired
relationIdstringrequiredThe relation being replaced. The wire field is oldRelationId.
(new relation)CreateRelationInputrequiredA whole new relation, with the same fields createRelation takes. On the wire this is newRelation.
Returns
FieldTypePresence
newRelationIdstringalwaysThe replacement.
versionintegeralwaysThe new version number.
Close the old interval
Superseding does not set the old relation's validToUnixNanos for you. If
the point is that someone used to work somewhere, set that bound on the
version you are replacing before — or as part of — the supersession.
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.
See also
Was this page helpful?