Back

Relational Data

Represent & navigate relationships between db tables

The vast majority of apps need some kind of relational data model, connecting the dots between different entities represented as documents in a different db tables. In Convex, relational data can easily be modeled by means of document IDs, which enable references between documents stored anywhere in Convex, regardless of whether those relationships are 1:1, 1:many, or many:many. When it comes time to traverse those relationships while querying data, in Convex you just write code, instead of JOIN statements. Open-source helper functions written by the Convex team make it even easier to quickly define & navigate relational data with Convex.