Directus Basics Part 2 — Understanding Relationships (M2O, O2M, M2M) This is part two of our Dire...Directus Basics Part 2 — Understanding Relationships (M2O, O2M, M2M) This is part two of our Dire...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Directus Basics Part 2 — Understanding Relationships (M2O, O2M, M2M)
This is part two of our Directus Basics series. In part one, we set up a Directus instance and created our first collection. Today we're covering one of the most powerful features Directus offers: **relationships** between collections.
By the end of this article, you'll understand three core relationship types — Many to One (M2O), One to Many (O2M), and Many to Many (M2M). There's a fourth type, Many to Any (M2A), which we'll cover in a future post.
Diego's avatar
M2M relationships are where Directus tutorials usually lose people, good that you're breaking it into its own part. In client projects, is this mostly coming up for content-heavy sites with a lot of cross-references, or does it show up more often than that?
Wade's avatar
It's not just one project in particular, but since I started using Directus (https://northernrangedigital.com ), of all the features, relationships, was a bit tricky for me especially when I wanted to share data across multiple collections. I thought to myself, someone who is...

northernrangedigital.com

Northern Range Digital — Web Development Studio

Full-stack digital products built to perform, designed to impress.

Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started