View Source Ash.Registry (ash v2.15.0)
A registry allows you to separate your resources from your api
module, to reduce improve compile times and reduce compile time dependencies.
For example:
defmodule MyApp.MyRegistry do
use Ash.Registry
entries do
entry MyApp.Resource
entry MyApp.OtherResource
end
end
Summary
Types
@type t() :: module()
Functions
This function is deprecated. use Ash.Registry.Info.entries/1 instead.
This function is deprecated. use Ash.Registry.Info.warn_on_empty?/1 instead.