• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Big Data | Hadoop by
Q:
How can you achieve primary key - foreign key relationships in MongoDB?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Oct 12, 2019 in Big Data | Hadoop by RShastri
0 votes
asked Oct 12, 2019 in Big Data | Hadoop by RShastri
...