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 |
What is the role of use command?
Mention what is the basic syntax to use index in mongodb?
When using replication, can some members use journaling and others not?
Which is better firebase or mongodb?
How many companies are using mongodb?
Is mongodb a graph database?
What do you know about mongodb?
Does mongodb store data in memory?
Can you create an index on an array field in mongodb? If yes, what happens in this case?
What is bson and how can restore this file in mongodb?
Why is mongodb called mongodb?
What is mongodb sharding?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)