Mongodb relationships — big data engineer road #6
4 min readNov 6, 2020
So, how we can store related data?
Do you use Embedded Documents or References after reading this tutorial?
Embedded vs References
As I’ve just said, we can have embedded documents or references in a documents.
When you want to use embedded/nested relationship just include one collection in another collection. For example: