📜  如何在 mongodb 中使用外键 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:47.332000             🧑  作者: Mango

代码示例1
No, mongo dB doesn't support foreign key, primary key relationship.
Mongodb is not build on ACID properties but CAP theorem. 
Also mongodb encourages to put relevant data into single collection rather than putting into multiple collections and then map those multiple collections by foreign key relationships.