1.

How Can You Achieve Primary Key - Foreign Key Relationships In Mongodb?

Answer»

By DEFAULT MONGODB does not support such primary key - foreign key relationships. HOWEVER, we can achieve this concept by EMBEDDING one DOCUMENT inside another. Foe e.g. an address document can be embedded inside customer document.

By default MongoDB does not support such primary key - foreign key relationships. However, we can achieve this concept by embedding one document inside another. Foe e.g. an address document can be embedded inside customer document.



Discussion

No Comment Found