MongoDB model
Note: this page is outdated. Please visit MongoDB schema design
MongoDB data model
In Moon Modeler you can easily draw hierarchical structures.
The diagrams can be visually presented in a form similar to entity relationship diagrams (ERD) that usually describe structures of relational databases.
Collections
Database collections are displayed as graphical boxes with all collection fields.
Embedded documents
One of the main advantages of Moon Modeler is the possibility to visually display MongoDB documents - fields of the Object data type.
Notation
Collections and documents are represented as boxes in the MongoDB model, but references contain additional graphical elements that can help you easily communicate specific rules, for example, cardinality.
Cardinality
If set to Mandatory child - a record in child collection is required.
Graphical representation:
If the cardinality is set to 1, then the crows' foot is not displayed at the end of the reference line.
Graphical representation:
Optional record in child collection is represented by a small circle.
# The end of MongoDB model page