Skip to content

Commit dde638e

Browse files
committed
docs: correct sample
1 parent 925a769 commit dde638e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/nav/guide/choose-algo.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ models:
144144
The result will include the relationship inferred from the constraint:
145145
146146
```
147-
Ref: "orders"."location_id" > "locations"."location_id"
147+
Ref: "model.dbt_project.orders"."location_id" > "model.dbt_project.locations"."location_id"
148148
```
149149
150150
### Model-level FK (composite relationships)
@@ -168,7 +168,7 @@ models:
168168
The result will include the multi-column relationship:
169169

170170
```
171-
Ref: "fct_customer_segment_orders".("customer_id", "segment_code") > "dim_customer_segment".("customer_id", "segment_code")
171+
Ref: "model.dbt_project.fct_customer_segment_orders".("customer_id", "segment_code") > "model.dbt_project.dim_customer_segment".("customer_id", "segment_code")
172172
```
173173

174174
### Primary key detection
@@ -206,6 +206,9 @@ The affected columns will appear with a `[pk]` index in the ERD output.
206206

207207
### Relationship labels
208208

209+
!!! note
210+
Relationship labels are only rendered in the **Mermaid** target. Other output formats ignore this field.
211+
209212
To annotate a relationship edge with a label, add a `relationship_labels` dict to the model's `meta`, keyed by the constraint name:
210213

211214
```yaml

0 commit comments

Comments
 (0)