Relationship

Do a MongoDB database support foreign-key and primary-key relationship?

1 Like

No. Mongodb is NoSQL database.MongoDB doesn’t support primary key-foreign key relationship.That means there is no concept of tables in mongodb. Database generates unique id for each document in the collection