Skip to main content
Invalidates an edge, marking it as no longer active while preserving it in the database for historical queries.

Parameters

id
string
required
Edge ID to invalidate.

Behavior

Sets expiredAt and invalidAt to the current timestamp. The edge is excluded from:
  • search_graph results (when excludeExpired is true, which is the default)
  • getEdgesForNode results
Use this when a relationship ends without replacement. For relationship changes, use update_edge instead.