Does Mongodb Support Foreign Key Constraints?

Technology CommunityCategory: MongoDBDoes Mongodb Support Foreign Key Constraints?
VietMX Staff asked 3 years ago

No. MongoDB does not support such relationships. The database does not apply any constraints to the system (i.e.: foreign key constraints), so there are no “cascading deletes” or “cascading updates”. Basically, in a NoSQL database it is up to you to decide how to organise the data and its relations if there are any.