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...


Does mongodb support primary-key, foreign-key relationship?



Does mongodb support primary-key, foreign-key relationship?..

Answer / Varun Vikram Singh

Yes, MongoDB supports a concept similar to primary keys but not in the traditional sense of relational databases. Each document in MongoDB has an _id field by default, which can serve as a unique identifier. Foreign keys are not directly supported in MongoDB, but relationships between documents can be established using references or embedded documents.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What is the role of use command?

1 Answers  


Mention what is the basic syntax to use index in mongodb?

1 Answers  


When using replication, can some members use journaling and others not?

1 Answers  


Which is better firebase or mongodb?

1 Answers  


How many companies are using mongodb?

1 Answers  


Is mongodb a graph database?

1 Answers  


What do you know about mongodb?

1 Answers  


Does mongodb store data in memory?

1 Answers  


Can you create an index on an array field in mongodb? If yes, what happens in this case?

1 Answers  


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

1 Answers  


Why is mongodb called mongodb?

1 Answers  


What is mongodb sharding?

1 Answers  


Categories