Does mongodb support foreign key constraints?



Does mongodb support foreign key constraints?..

Answer / Neeraj Jalota

No, MongoDB does not directly support foreign key constraints. However, you can implement similar functionality using references and embedding.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What is the use of limit() function in mongodb?

1 Answers  


How to create index after every query insert?

1 Answers  


Does mongodb need a lot of ram?

1 Answers  


How to convert string to objectid in mongoose?

1 Answers  


Does mongodb store data in memory?

1 Answers  


Does aws have mongodb?

1 Answers  


Can I use sql in mongodb?

1 Answers  


What is the role of use command?

1 Answers  


What should all points be taken into consideration while creating a schema in mongodb?

1 Answers  


Which all languages can be used with mongodb?

1 Answers  


What is a mongodb shard?

1 Answers  


How is mongodb used?

1 Answers  


Categories