NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

Learn more

Part 2: Adding relationships

Alright! Now that you have mastered how to use record IDs and schemaless CRUD, it's time to build on that knowledge by learning how to create relationships between tables.

We'll be covering graph relations first, then dive into record links and finish with relational-style joins, which - spoiler alert - are actually subqueries.

Throughout this part, we'll be discussing data modelling, when to use graph vs record links and learn all about doing CRUD using relationships.

If you're ready to start making some new relationships, join me in the next one.

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

IN PRODUCTION

Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
Justin Foley

VP of Engineering, Later