Skip to main content

Relationships

Relationships connect RushDB records into a traversable graph. They are named, directed edges between records, not foreign-key columns or application-side joins.

You can create relationships explicitly, generate them automatically from nested JSON imports, connect large datasets by matching keys, and filter records by traversing one or more hops inside a where clause.

Choose a Workflow

GoalGuide
Attach or detach individual record pairsConnect Records
Connect many records by matching keysBulk Relationships
Review and approve inferred graph structureSuggested Patterns
Create parent-child edges while importing nested JSONImport Data
Filter through related recordsRelationship Traversal

Relationship Sources

SourceWhat it creates
Nested JSON importDefault parent-to-child edges as RushDB decomposes the payload
attach / detachExplicit edges between known record IDs
Bulk relationship APIsEdges between matching source and target records
Approved relationship patternsExplicit edges inferred from ontology structure and reviewed before application

Relationship types and direction are optional when traversing broadly and explicit when your query needs a specific edge contract.