In SQL, Many-to-Many requires a join table. In MongoDB, you can store an array of referenced IDs on one (or both) sides, or use a dedicated linking collection when the relationship itself has extra attributes (like enrolledAt or grade).
ADVERTISEMENT