Add `get` step to `Ash.Reactor`
Open
enhancement
- Dominant language
- Elixir
- Stars
- 2.5k
- Forks
- 422
- Avg merge
- 23h 26m
- Merged PRs (30d)
- 46
Description
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
```elixir
get :get_post, Post, :read do
by [:id]
inputs %{id: input(:post_id)}
end
```
Contributor guide
Research direction
Start by locating the Ash.Reactor step implementations and the existing `get` code interface referenced in the issue. Implement the requested step for the shown `Post` example, then verify that it returns one value using the listed attributes and inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100