Search
Star
1.4k
Feedback
Setup for Free
AF
Ash Framework
•
5mo ago
•
4 replies
Joan Gavelán
Automatically Loading a Calculation by Default
Is there a way to always load a calculation by default without having to specify it every time
?
Solution
there is the
build
preparation you can use
read :read do prepare build(load: [:calculation]) end
read :read do prepare build(load: [:calculation]) end
Jump to solution
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,180
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
read :read do
prepare build(load: [:calculation])
end
read :read do
prepare build(load: [:calculation])
end
Similar Threads
no FunctionClause matching when loading calculation
AF
Ash Framework / support
3y ago
Loading data from an external API for a calculation
AF
Ash Framework / support
4mo ago
Calculation just ids from a relation
AF
Ash Framework / support
8mo ago
Calculation referencing a resource in a different schema
AF
Ash Framework / support
8mo ago