Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create primary/foreign key relationships in mongodb?



How to create primary/foreign key relationships in mongodb?..

Answer / Anuj Baliyan

MongoDB does not support traditional primary and foreign key relationships as in relational databases. Instead, MongoDB uses a document-oriented approach where each document can contain its own unique _id field, and you can reference other documents by their _id value. To create a relationship between two collections, you would store the _id of the referenced document in the referring collection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Is mongodb free to use?

1 Answers  


What is bson and how can restore this file in mongodb?

1 Answers  


When an object attribute is removed, is it deleted from the store?

1 Answers  


In which format data is stored in mongodb?

1 Answers  


What is mongoose in mongodb?

1 Answers  


Can mongodb store structured data?

1 Answers  


Is mongodb a nosql?

1 Answers  


How do I show a collection in mongodb?

1 Answers  


What is the command syntax that tells you whether you are on the master server or not? And how many master does mongodb allow?

1 Answers  


Is mongodb worth learning 2019?

1 Answers  


How you can inspect the source code of a function?

1 Answers  


How do you know the all indexes available for a collection?

1 Answers  


Categories