Select fields in read action

Ash read actions always return structs, so all fields will be present on the structs. But if you want to avoid selecting them you can use prepare build(select: [:foo, :bar]) to limit the selected fields in a given action

Copied from Zach’s message in Discord.

3 Likes