View Source Ash.CodeInterface (ash v3.0.0-rc.31)
Used to define the functions of a code interface for a resource.
Summary
Functions
Defines the code interface for a given resource + domain combination in the current module. For example
Functions
Defines the code interface for a given resource + domain combination in the current module. For example:
defmodule MyApp.Accounting do
require Ash.CodeInterface
Ash.CodeInterface.define_interface(MyApp.Accounting, MyApp.Accounting.Transaction)
Ash.CodeInterface.define_interface(MyApp.Accounting, MyApp.Accounting.Account)
Ash.CodeInterface.define_interface(MyApp.Accounting, MyApp.Accounting.Invoice)
end
Link to this function