DBML for Mongodb

Recently I have tried to parse mongoose schema definitions to some meaningful db markdown to visualize the data models connections.

Original choice was mermaid (Entity Relationship Diagrams) however after producing the diagram for 50+ collections with 150+ relations it appeared to be unusable and not something you can deal with.

Another option was dbml. Once I finally produced the valid dbml definitions I have pasted them at https://dbdiagram.io/. You still need to manually move the blocks to visualize the relationships better, but looks much more promising now.

Few notes regarding https://dbdiagram.io/:

2025-06-03