ash-project / ash-project/ash

4.0: Return a single record from `Ash.read` when the action has `get?: true`

Open
#1,628 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
2.5k
Forks
426
Avg merge
23h 26m
Merged PRs (30d)
46

Description

Make `get?: true` read actions cause `Ash.read` to return a single record, just like pagination causes it to return a page.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Ash.read entry point and the tests for read actions, pagination, and get?: true. Trace how pagination selects its return shape, then verify that get?: true returns one record while ordinary reads retain their existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.