Data Models
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
Data in MongoDB has a flexible schema. Collections do not enforce document structure by default. This flexibility gives you data-modeling choices to match your application and its performance requirements.
- Data Modeling Introduction
- An introduction to data modeling in MongoDB.
- Schema Validation
- MongoDB provides the capability for schema validation during updates and insertions.
- Data Modeling Concepts
- The core documentation detailing the decisions you must make when determining a data model, and discussing considerations that should be taken into account.
- Data Model Examples and Patterns
- Examples of possible data models that you can use to structure your MongoDB documents.
- Data Model Reference
- Reference material for data modeling for developers of MongoDB applications.