View Source Ash.Domain.Info.Diagram (ash v3.4.42)
Generate Mermaid diagrams from a specified domain.
Limitations
We can't easily model Ash relationships with Mermaid diagrams because they are unidirectional and could be asymmetric. Mermaid assumes symmetrical, bidirectional relationships. If we try to model all unidirectional relationships as separate lines in the diagram it gets very hard to read very quickly.
Summary
Functions
Generates a Mermaid Class Diagram for a given domain.
Generates a Mermaid Entity Relationship Diagram for a given domain.
Functions
mermaid_class_diagram(domain, opts \\ [indent: " ", show_private?: false])
View SourceGenerates a Mermaid Class Diagram for a given domain.
Shows only public attributes, calculations, aggregates and actions. Shows a connecting line for relationships with the type of relationship indicated in the attribute list.
mermaid_er_diagram(domain, opts \\ [indent: " ", show_private?: false])
View SourceGenerates a Mermaid Entity Relationship Diagram for a given domain.
Shows only public attributes, calculations, aggregates and actions. Shows a one-to-one line for relationships as enumerating all unidirectional relationships is far too noisy.