mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.26k stars 6.25k forks source link

Support document database style data model #4236

Open zomgbre opened 1 year ago

zomgbre commented 1 year ago

Proposal

Mermaid.js should support a document database style data model. The current ERD type is almost sufficient, but it does not appear to support nested attributes that you would expect to find a document database.

Use Cases

Diagramming a document database model, specifically for MongoDB or DocumentDB or anything like these.

Screenshots

I attempted to get it to work in more of a flattened style "client.name" for example, but there appears to be no way to escape period. I tried various things: image

Code Sample

No response

ovidyou commented 5 months ago

@zomgbre I am currently having the same issue. Did you find a solution?