Loading attributes of a join resource when loading a many-to-many relationship?
Ash
I feel like there must be an easy answer to this that I'm just missing.
I have a many-to-many relationship whose join resource has a
position
position
attribute for ordering. If I have a list of resource A and load the many to many relationship to resource b like
things_b = Ash.load!(things_a, :related_things_b)# how to get the position attribute for each thing in things_b from thing_a_thing_b join table out of these records?
things_b = Ash.load!(things_a, :related_things_b)# how to get the position attribute for each thing in things_b from thing_a_thing_b join table out of these records?
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.