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 mongodb cluster?
What is cluster in mongodb?
Give any 6 data types of MongoDB?
What is the exist operator?
How do I do transactions/locking?
What do you know about mongodb?
Why would you choose mongodb?
Is mongodb better than cassandra?
Is it required to call ‘getlasterror’ to make a write durable?
What is mongodb tutorial?
Mention how you can inspect the source code of a function?
What query language does mongodb use?
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)