MongoDB 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 embedded documents.

The documents are displayed inside collections and also as separate graphical objects. Modifications made to an embedded document are automatically reflected in all collections where the document is used. See the Address embeddable document in the MongoDB model below. It is used in collections Customer and Vendor.

Documents can appear inside other documents. See collection Customer. The collection contains document Contact that contains an array of addresses (embedded document Address).

MongoDB model

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.

MongoDB model and cardinality

Graphical representation:

MongoDB model and cardinality

If cardinality is set to 1, then the crows' foot is not displayed at the end of the reference line.

Mandatory child and one to many

Graphical representation:

Mandatory child

Optional record in child collection is represented by a small circle.

Optional child

 # The end of MongoDB model page

Copyright: 2019 Datensen. All rights reserved.
This website is not endorsed by MongoDB, Inc.
This website uses cookies to ensure you get the best experience on our website.