Ash.Info (ash v3.5.9)
View SourceGeneral introspection helpers for Ash applications.
Use Ash.Info.mermaid_overview(otp_app)
to generate a mermaid chart of the application's domains and resources.
This offers a high level view, but will not include information from extensions. Use resource_report/2
for a detailed report of a resource.
Use Ash.Info.mermaid_overview(otp_app, type: :entity_relationship)
to get a simplified entity relationship diagram.
Use Ash.Info.domains_and_resources(otp_app)
to get a map where the keys are the domains, and the value is the list
of resources for that domain.
Summary
Functions
Returns a map where the keys are the domains, and the value is the list of resources for that domain.
Generate a mermaid chart of the application's domains and resources.
Functions
@spec domains(atom()) :: [Ash.Domain.t()]
@spec domains_and_resources(atom()) :: %{ required(Ash.Domain.t()) => [Ash.Resource.t()] }
Returns a map where the keys are the domains, and the value is the list of resources for that domain.
Generate a mermaid chart of the application's domains and resources.
This offers a high level view, but will not include information from extensions.