Error Loading 3 `no_attributes?: true` nested relationships
I'm running into an error that's very similar to one I encountered before.
The structure is
Grandpappy > has_many > Parent > has_many > Child > has_many Toy
Grandparent
also has_many :grandchild_toys
via a no_attributes?: true
relationship:
When I add three calculations (:foo, :bar and :baz
) to Child
, and all three need to load the grandchild toys like so...
... the following code results in an exception:
However, the following code works:
So it only seems to happen when loading all three in one go.
https://github.com/enoonan/error_demoGitHub
GitHub - enoonan/error_demo: Demos an error I'm getting loading com...
Demos an error I'm getting loading complex relationships / calculations - enoonan/error_demo
6 Replies
latest versions of everything?
Yup
Using Elixir 1.18.2 and Erlang/OTP 27.
From mix.lock:
The readme on the github repo is a bit more fleshed out
😠 my least favorite kind of bug lol
Sorryyyyyyyyy
please open an issue on Ash and include that reproduction
Oky doke
Done!