When should we embed one document within another in MongoDB?

Technology CommunityCategory: MongoDBWhen should we embed one document within another in MongoDB?
VietMX Staff asked 3 years ago

You should consider embedding documents for:

  • contains relationships between entities
  • One-to-many relationships
  • Performance reasons