MongoDB: How to represent a schema diagram in a thesis?

后端 未结 2 672
礼貌的吻别
礼貌的吻别 2021-01-30 08:56

I am currently writing a thesis and need to display the schema of my MongoDB in a diagram. I have found no resources about diagrams for document-based databases.

There

相关标签:
2条回答
  • 2021-01-30 09:33

    We found class diagrams to actually be one of the best ways to represent a mongo schema design.

    It can capture most of the items that a document will have such as arrays, embedded objects and even references.

    General guidelines we use to relate onto concepts to uml

    Embed = Composition aggregation

    Reference = Association class

    If you're unfamiliar with the uml terminology then this is a decent intro.

    UML intro from IBM site

    0 讨论(0)
  • 2021-01-30 09:42

    There is a tool doing diagrams for MongoDb, is called DbSchema. It discovers the schema by scanning data from db. I would also suggest trying two features from them :

    • virtual relations which allow exploring data from different collections in the same time. A kind of JOIN between different collections.
    • HTML documentation, we use it in presentations as well - the comments are in mouse-over ( diarams are saved as vector images ).
    0 讨论(0)
提交回复
热议问题