Docs Menu
Docs Home
/ /

Export Your Entity-Relationship Diagram from Compass

You can share your refactored data model with other teams to receive feedback and align on final schema design decisions. To share your refactored schema, you can export your entity-relationship diagram from Compass.

You can export your entity-relationship diagram as a:

  • Diagram File.

  • PNG image.

  • JSON file.

When you export your diagram as a Diagram File, Compass exports the diagram as a .mdm file. This file format allows you to import the diagram into Compass, which can be helpful when sharing your entity-relationship diagram with collaborators that also use Compass.

When you export your diagram as a PNG image, Compass exports the collections and their relationships as they appear in the Data Modeling tab. This format helps you share a visual representation of your schema in documentation or presentations.

When you export your diagram as a JSON file, it includes:

  • A collections array with the collection namespaces and their jsonSchema.

  • A relationships array with the namespaces of the related collections and their linked fields.

Before you export your schema visualization, ensure you already generated a diagram.

1

In the left sidebar, click Data Modeling.

2
3

In the upper-right corner of your diagram view, click the icon.

4

After you select the file format, click Export.

5

Select the location on your filesystem to save your exported file.

Back

Manage Relationships

On this page