Concept Flow - Many-to-many with references
Create Collection A
Create Collection B
Insert Documents in A with refs to B
Insert Documents in B
Query with $lookup to join
Get combined results
This flow shows how the students collection references the courses collection to model many-to-many relations, then how to query them together.