Skip to main content

Export: Mermaid

Generates a Mermaid entity-relationship diagram of the contract's schemas.

datacontract export mermaid orders.odcs.yaml

Running this against the example orders contract produces:

erDiagram
"**orders**" {
order_id🔑🔒 string
order_timestamp timestamp
customer_id string
order_total integer
status string
}
"**line_items**" {
line_item_id🔑🔒 string
order_id string
sku string
quantity integer
}

All options: datacontract export mermaid.