ash
ash copied to clipboard
Add `get` step to `Ash.Reactor`
As suggested by Zach, we should have a get step which can return a single value based on a list of attributes, much like the get code interface.
This should be fairly trivial to add.
Example
get :get_post, Post, :read do
by [:id]
inputs %{id: input(:post_id)}
end
One thing to keep in mind is that we need way to specify inputs to the action in addition the what is being got-by and they might not be the same thing