ash icon indicating copy to clipboard operation
ash copied to clipboard

Add `get` step to `Ash.Reactor`

Open jimsynz opened this issue 9 months ago • 1 comments

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

jimsynz avatar Mar 19 '25 04:03 jimsynz

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

zachdaniel avatar Mar 19 '25 05:03 zachdaniel