View Source Ash.CodeInterface (ash v3.4.49)
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