Skip to content

Add multi-hop graph traversal API with expressive query patterns #236

@ravisuhag

Description

@ravisuhag

Context

The current lineage API supports single-direction, single-depth neighborhood lookups. Real questions require richer graph traversal across multiple hops, entity types, and relationship types.

Scope

New graph query API supporting:

  • Multi-hop traversal — traverse N hops in any direction with configurable depth
  • Type-filtered traversal — "follow only `produces` edges" or "stop at `dashboard` nodes"
  • Path queries — "show the full data flow from this Kafka topic to this dashboard"
  • Temporal filters — "what changed upstream in the last 24 hours"
  • Bidirectional queries — explore both upstream and downstream in a single request

Example Queries

  • "If I change this table's schema, which dashboards break?" — downstream traversal, stop at dashboard type
  • "Show the full data flow from this Kafka topic to the executive dashboard" — path query
  • "What changed upstream of this metric this week?" — upstream traversal with time filter

Design Considerations

  • Pagination for large result sets
  • Cycle detection in the graph
  • Performance: index strategies for common traversal patterns
  • Response format: nodes + edges with metadata, suitable for visualization and LLM consumption

Dependencies

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions