Docs Menu
Docs Home
/ /

Modify Fields in Your Atlas Entity-Relationship Diagram

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

In the Data Modeling tab, you can:

  • Add or remove fields

  • Change field data types

  • Rename fields

Note

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

The following steps describe how you can add, edit, and remove fields in your entity-relationship diagram:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

2

In the left sidebar, click Data Modeling.

3

From the Data Modeling tab, open your diagram.

4

To add a new field, click the icon in the upper-right corner of one of your collection nodes. A new field appears in the collection node.

Once you add a field, you can edit the field's properties, including:

  • Renaming the field.

  • Changing the field's data type.

  • Adding relationships.

5

Click one of your fields in the diagram. The field side panel opens on the right side of the screen.

6

Under the Name section, specify a new name for your selected field.

7

In the Datatype drop-down menu, select the datatypes that you want to assign to the field. Because data in MongoDB has a flexible schema model, you can specify multiple data types for a field. If a field contains multiple data types, Atlas labels the field as (mixed) in the diagram.

8

In the side panel, click the icon.

Back

Modify Collections

On this page