Skip to main content

ERD View

The ERD (Entity-Relationship Diagram) view provides a visual representation of your collection's structure and relationships with other collections.

How to Access

  1. Open Studio.
  2. Navigate to the Collections section.
  3. Click the ERD tab in the top navigation bar.

Diagram Elements

The diagram displays your data model with the following elements:

Collection Nodes

Each collection appears as a card showing:

  • Collection name at the top
  • List of fields with their data types
  • Field annotations (primary key, required, etc.)

Relationship Lines

Lines between collections indicate relationships:

  • One side — Shown with a single line marker
  • Many side — Shown with a crow's foot (fork) marker

The line direction shows how collections relate (one-to-one, one-to-many, many-to-many).

Enum Nodes

Separate nodes for enum types used in your schema are also displayed to show available options.

Controls

The diagram includes controls in the bottom-right corner:

ControlAction
Zoom in
Zoom out
Fit diagram to view
Toggle interactive mode (drag nodes)

Additional controls:

  • Full Screen button (top-right) — Expand the diagram to full screen for a better view

Interacting with the Diagram

  • Pan — Click and drag on the background to move around
  • Zoom — Use scroll wheel or zoom controls to zoom in/out
  • Move nodes — Drag individual collection boxes to rearrange the layout
  • Fit view — Click the fit button to center and zoom the diagram to show all collections
tip
  • Open in Full Screen mode when working with complex schemas for a clearer view.
  • Use the ERD to verify relationships after adding new relational fields.
  • The diagram auto-layouts initially, but you can rearrange nodes as needed by unlocking interactive mode.