Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k points)

enter image description here

How do I design a scheme such as this in MongoDB? I think there are no foreign keys!

1 Answer

0 votes
by (107k points)

With the help of Object Ids that are by default assigned to each and every document inside the MongoDB database, you can correlate your documents that are present inside your collection. Mongoid will help you in providing the functions that help in co-relating the documents. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
asked Sep 4, 2019 in SQL by Sammy (47.6k points)
0 votes
1 answer
asked Sep 4, 2019 in SQL by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...