Docs Menu
Docs Home
/ /

Modify Collections in Your Compass Entity-Relationship Diagram

You can modify your existing entity-relationship diagram in Compass to plan changes to your data model without affecting your actual data.

In the Data Modeling tab, you can:

  • Add or remove collections

  • Rename collections

Note

Any changes you make to your entity-relationship diagram won't affect your actual database.

You must have an existing entity-relationship diagram in Compass to modify the fields. To create a new diagram, see Generate an Entity-Relationship Diagram in Compass.

To add a new collection to your entity-relationship diagram:

1

In the left sidebar, click Data Modeling.

2

From the Data Modeling tab, open your diagram.

3

To add a new collection, click the icon in the upper-left corner of the diagram canvas. A new collection node appears in the diagram.

Add collection icon in the Data Modeling tab

To rename a collection in your entity-relationship diagram:

1

In the left sidebar, click Data Modeling.

2

From the Data Modeling tab, open your diagram.

3

Click one of your collections in the diagram. The collection side panel opens on the right side of the screen.

To delete a collection from your diagram:

1

In the left sidebar, click Data Modeling.

2

From the Data Modeling tab, open your diagram.

3

Click one of your collections in the diagram. The collection side panel opens on the right side of the screen.

4

In the side panel, click the icon.

  • Data Modeling

  • Data Modeling in MongoDB Compass

Back

Generate Diagram

On this page