MongoDB Data Modeling
We know that MongoDB is a document-oriented database or NoSQL database. It is a schema-less database or we can say, it has a flexible schema. Unlike the structured database, where we need to determine table’s schema in advance, MongoDB is very flexible in this area.
MongoDB deals in collections, documents, and fields. We can have documents containing different sets of fields or structures in the same collection. Also, common fields in a collection can contain different types of data. This helps in easy mapping.