Simulating arguments on relationships with calculations
I've seen questions related to this come up in various forms pretty regularly over the last few months, and given the outcome of https://github.com/ash-project/ash/issues/375, I thought it might be helpful to collect a series of examples for common patterns in simulating parameterized relationships with calculations.
Happy to turn the output of this into a patch to the docs for a new guide, or new section of the Calculations guide.
GitHub
Issues · ash-project/ash
A declarative and extensible framework for building Elixir applications. - Issues · ash-project/ash
1 Reply
Sounds useful 🙂
FYI there is a new calculation called LoadRelationship built in
It’s not well documented yet, but it’s used by
ash_graphql
to load the same relationship in different ways