which is confusing to me as well as the compiler. im new to ash and elixir but how would a domain have a
read
read
action? domains dont even take actions. the compiler says
(UndefinedFunctionError) function Helpdesk.Support.read!/1 is undefined or private
(UndefinedFunctionError) function Helpdesk.Support.read!/1 is undefined or private
Solution
Just to add that you can have code_interfaces on your domain, that have functions you can call. But in that case you won't need to pass the Resource. https://hexdocs.pm/ash/code-interfaces.html
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.