View Source Ash.Resource (ash v2.15.17)
A resource is a static definition of an entity in your system.
Summary
Functions
Returns true if the load or path to load has been loaded
Sets a loaded key or path to a key back to its original unloaded stated
Sets a list of loaded key or paths to a key back to their original unloaded stated
Types
Functions
@spec loaded?( nil | [record()] | record() | Ash.Page.page(), atom() | Ash.Query.Calculation.t() | Ash.Query.Aggregate.t() | [atom()], opts :: Keyword.t() ) :: boolean()
Returns true if the load or path to load has been loaded
Options
lists
: set to:any
to have this return true if any record in a list that appears has the value loaded. Default is:all
.unknown
: set totrue
to have unknown paths (like nil values or non-resources) return true. Defaults tofalse
@spec unload( nil | [record()] | record() | Ash.Page.page(), atom() | [atom()] ) :: nil | [record()] | record() | Ash.Page.page()
Sets a loaded key or path to a key back to its original unloaded stated
@spec unload_many( nil | [record()] | record() | Ash.Page.page(), [atom()] | [[atom()]] ) :: nil | [record()] | record() | Ash.Page.page()
Sets a list of loaded key or paths to a key back to their original unloaded stated