Export schema across collections

Hi everyone,

I wonder if there’s a way to export schemas for all collection under the same db at once, and preferably generate an interactive ERD for display? I tried mongosh and compass ui both of them require user to manually go through each collection to view schema, let alone mass generate ERD, so wonder if anyone knows the workaround? And if this is not directly achievable in Mongodb, any recommendation on 3rd party tools?

Appreciate all input in advance!

Hey @JJ_Zhang -

You’re right that in Compass and mongosh you have to export schemas one collection at a time. We’re looking into a solution that I think would meet your needs; I will DM you my scheduling link in case you’d like to learn more and provide feedback.

In the meantime, I know many of our users use tools like Hackolade and Moon Modeler to visualize their MongoDB data models. Neither of these are managed by MongoDB but hopefully they help.