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

What will be objects between two dates in mongodb?

1 Answers  


What are documents in mongodb?

1 Answers  


What is a table in mongodb?

1 Answers  


Which commands you use to lock the database in mongodb?

1 Answers  


How to create index after every query insert?

1 Answers  


What types of locking use in mongodb?

1 Answers  


Does mongodb need a lot of ram?

1 Answers  


Does mongodb use hadoop?

1 Answers  


How does sharding work with replication?

1 Answers  


What is the term match in mongodb?

1 Answers  


In which language mongodb is written?

1 Answers  


Is mongodb scalable?

1 Answers  


Categories